aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-04-06 19:39:18 +0200
committerneodarz <neodarz@neodarz.net>2019-04-06 19:39:18 +0200
commit537e727f43311bc30d93c9af645dde3450605129 (patch)
treebd8bb13cb61c593c3c571847bbc92d821d78ee7a
parent25a719b3640914b4ee6e2cbb95e7f25d2180f4d4 (diff)
downloaddotfiles_ascii-537e727f43311bc30d93c9af645dde3450605129.tar.xz
dotfiles_ascii-537e727f43311bc30d93c9af645dde3450605129.zip
Update rust cheat
-rw-r--r--cheat/.cheat/rust11
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]