aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/rust
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-04-05 11:15:33 +0200
committerneodarz <neodarz@neodarz.net>2019-04-05 11:15:33 +0200
commit25a719b3640914b4ee6e2cbb95e7f25d2180f4d4 (patch)
tree38c4fbc395f238ea46667380f76d23974647457b /cheat/.cheat/rust
parent6b7abb728512518af15050c0dbb196c0e9bc7227 (diff)
downloaddotfiles_ascii-25a719b3640914b4ee6e2cbb95e7f25d2180f4d4.tar.xz
dotfiles_ascii-25a719b3640914b4ee6e2cbb95e7f25d2180f4d4.zip
Add more cheat
Diffstat (limited to '')
-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>)