Trait sp_arithmetic::traits::AtLeast8Bit

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

Object Safety§

This trait is not object safe.

Implementors§