Trait sp_arithmetic::traits::AtLeast32Bit[][src]

pub trait AtLeast32Bit: BaseArithmetic + From<u16> + From<u32> { }

A meta trait for arithmetic.

Arithmetic types do all the usual stuff you'd expect numbers to do. They are guaranteed to be able to represent at least u32 values without loss, hence the trait implies From<u32> and smaller integers. All other conversions are fallible.

Implementors

impl<T: BaseArithmetic + From<u16> + From<u32>> AtLeast32Bit for T[src]

Loading content...