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

type Base: BitArray<NonZero = Self>[src]

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]

type Base = u8

fn new(n: Self::Base) -> Option<Self>[src]

unsafe fn new_unchecked(n: Self::Base) -> Self[src]

fn get(self) -> Self::Base[src]

impl NonZeroBitArray for NonZeroU16[src]

type Base = u16

fn new(n: Self::Base) -> Option<Self>[src]

unsafe fn new_unchecked(n: Self::Base) -> Self[src]

fn get(self) -> Self::Base[src]

impl NonZeroBitArray for NonZeroU32[src]

type Base = u32

fn new(n: Self::Base) -> Option<Self>[src]

unsafe fn new_unchecked(n: Self::Base) -> Self[src]

fn get(self) -> Self::Base[src]

impl NonZeroBitArray for NonZeroU64[src]

type Base = u64

fn new(n: Self::Base) -> Option<Self>[src]

unsafe fn new_unchecked(n: Self::Base) -> Self[src]

fn get(self) -> Self::Base[src]

impl NonZeroBitArray for NonZeroU128[src]

type Base = u128

fn new(n: Self::Base) -> Option<Self>[src]

unsafe fn new_unchecked(n: Self::Base) -> Self[src]

fn get(self) -> Self::Base[src]

impl NonZeroBitArray for NonZeroUsize[src]

type Base = usize

fn new(n: Self::Base) -> Option<Self>[src]

unsafe fn new_unchecked(n: Self::Base) -> Self[src]

fn get(self) -> Self::Base[src]

Implementors