aboutsummaryrefslogtreecommitdiff
path: root/cheat
diff options
context:
space:
mode:
Diffstat (limited to 'cheat')
-rw-r--r--cheat/.cheat/rust12
1 files changed, 12 insertions, 0 deletions
diff --git a/cheat/.cheat/rust b/cheat/.cheat/rust
index dd52c21..a81bd7d 100644
--- a/cheat/.cheat/rust
+++ b/cheat/.cheat/rust
@@ -16,3 +16,15 @@ let spaces = spaces.len()
Ne pas faire:
let mut spaces = " ";
spaces = spaces.len()
+
+# scalar types
+
+Un type scalaire representer une seul veleur.
+
+- Integer
+- 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>)