Trait smallest_uint::GetSmallestUIntFor
source · pub trait GetSmallestUIntFor: Unsigned + GetSmallestUIntFor {
type Type: Default + PrimInt + NumAssign;
}
Expand description
Gets the smallest unsigned integer type capable of representing the value
of Self
.
Self
is an unsigned type-level integer.
The type is provided as the associated type Self::Type
. If you just
want the type and aren’t specifying trait bounds, use the type alias
SmallestUIntFor
.