Function rin_math::iwrap[][src]

pub fn iwrap<T: PrimInt + Display>(value: T, from: T, to: T) -> T

Wrap an integer value in the range from..to