Trait constriction::NonZeroBitArray
source · 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;
}Expand description
Required Associated Types§
Required Methods§
fn new(n: Self::Base) -> Option<Self>
sourceunsafe fn new_unchecked(n: Self::Base) -> Self
unsafe fn new_unchecked(n: Self::Base) -> Self
Safety
The provided value n must be nonzero.