Cast it: fn main() { println!("{}", true as i32) } A boolean value in Rust is guaranteed to be 1 or 0: The bool represents a value, which could only be ...
確定! 回上一頁