View as slides
Toggle theme
Use system theme
Rust/Variable/Type/Scalar/Boolean
remarkably, booleans get an entire byte
uses
Rust/bool
keyword
Example
rust
fn
main
() {
let
t
=
true
;
let
f
:
bool
=
false
;
// with explicit type annotation
}
1 Linked Reference
Hierarchy
Rust
/
Variable
/
Type
/
Scalar
Unlinked References