I'm new at Rust and my style is probably quite ugly, but these double casts seemed the simplest way to handle the shifts.
Hmm, but thinking now, it will probably still panic if given more than 31 places... but rather than asserting, it should just cap them so that it can continue running without issue.
I'm new at Rust and my style is probably quite ugly, but these double casts seemed the simplest way to handle the shifts.
Hmm, but thinking now, it will probably still panic if given more than 31 places... but rather than asserting, it should just cap them so that it can continue running without issue.