diff options
Diffstat (limited to '')
-rw-r--r-- | cheat/.cheat/rust | 11 |
1 files 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<F12>) +- 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] |