From 537e727f43311bc30d93c9af645dde3450605129 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 6 Apr 2019 19:39:18 +0200 Subject: Update rust cheat --- cheat/.cheat/rust | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cheat/.cheat/rust b/cheat/.cheat/rust index a81bd7d..0a493b0 100644 --- a/cheat/.cheat/rust +++ b/cheat/.cheat/rust @@ -21,10 +21,17 @@ spaces = spaces.len() Un type scalaire representer une seul veleur. -- Integer +- Integer (Signé et non-signé) - Integer Literals (Decimal/Hex/Octal/Binary/Byte(u8)) - Floating-Point (Float) - Numeric Operation (Pas un type mais mis dedans ds le livres...) - Boolean `let t = true` ou `let f: bool = false` - Character (`char` type specified with single quotes) -- String (`string` type specified with double quotes) +- String (`string` type specified with double quotes) + +# Compound type + +Un type "compound" regroupe différent type de valeurs en une seul. + +- Tuple (multi type) ex: (1, 'z', 0.9) +- Array (same type) ex: [1, 2, 3] -- cgit v1.2.1