converting i32 to string rust code example Example: convert number to string rust let x: u32 = 10; let s: String = x.to_string(); println!("{}", s);