referrerpolicy=no-referrer-when-downgrade

Trait sp_arithmetic::traits::AtLeast16Bit

source ·
pub trait AtLeast16Bit: BaseArithmetic + From<u16> { }
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 u16 values without loss, hence the trait implies From<u16> and smaller integers. All other conversions are fallible.

Object Safety§

This trait is not object safe.

Implementors§