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