than max size of i32 to i32 in this way:
let a: i64 = 5;
let b = a as i32;
What happens if a is bigger than i32?
I guess it will take half of the bits safely. but just for making sure
as far as I know Rust will truncate
Обсуждают сегодня