Rust variables
From wikinotes
Assignment
let age: u8 = 200; // typed let age = 200u8; // type-suffix let age = 200; // implied type
Literals
let float = 3.14; // f64 let integer = 7; // i32
Introspection
use std::any::type_name;
let age: u8 = 200; // typed let age = 200u8; // type-suffix let age = 200; // implied type
let float = 3.14; // f64 let integer = 7; // i32
use std::any::type_name;