referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::traits

Trait AtLeast32Bit

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

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<T> AtLeast32Bit for T
where T: BaseArithmetic + From<u16> + From<u32>,