If I do this:
for i in 0..std::u8::MAX {
println!("{}", i);
}
then 255 is not included.
However, MAX+1 makes an overflow…
So, is there a simple way (without casting to u16) of enumerating all u8 integers?
Thanks.
If I do this:
for i in 0..std::u8::MAX {
println!("{}", i);
}
then 255 is not included.
However, MAX+1 makes an overflow…
So, is there a simple way (without casting to u16) of enumerating all u8 integers?
Thanks.