pub trait ToSmall: SealedToSmall { }
Expand description
Types implementing this trait can be converted to SmallInteger
.
The following are implemented when T
implements ToSmall
:
Assign<T> for SmallInteger
From<T> for SmallInteger
This trait is sealed and cannot be implemented for more types; it is
implemented for bool
and the unsigned integer types u8
, u16
,
u32
, u64
, u128
and usize
.