Rust variables

From wikinotes
Revision as of 21:42, 29 August 2021 by Will (talk | contribs)

Assignment

let test_env: bool = true;

Literals

let float = 3.14; // f64
let integer = 7;  // i32

Introspection

use std::any::type_name;