Trait constriction::NonZeroBitArray [−][src]
pub unsafe trait NonZeroBitArray: Copy + Display + Debug + Eq + Hash + 'static { type Base: BitArray<NonZero = Self>; fn new(n: Self::Base) -> Option<Self>; unsafe fn new_unchecked(n: Self::Base) -> Self; fn get(self) -> Self::Base; }
Associated Types
Required methods
fn new(n: Self::Base) -> Option<Self>
[src]
unsafe fn new_unchecked(n: Self::Base) -> Self
[src]
Expand description
Safety
The provided value n
must be nonzero.
fn get(self) -> Self::Base
[src]
Implementations on Foreign Types
impl NonZeroBitArray for NonZeroU8
[src]
impl NonZeroBitArray for NonZeroU8
[src]impl NonZeroBitArray for NonZeroU16
[src]
impl NonZeroBitArray for NonZeroU16
[src]impl NonZeroBitArray for NonZeroU32
[src]
impl NonZeroBitArray for NonZeroU32
[src]impl NonZeroBitArray for NonZeroU64
[src]
impl NonZeroBitArray for NonZeroU64
[src]impl NonZeroBitArray for NonZeroU128
[src]
impl NonZeroBitArray for NonZeroU128
[src]impl NonZeroBitArray for NonZeroUsize
[src]
impl NonZeroBitArray for NonZeroUsize
[src]