pub struct Bit<T> { /* private fields */ }
Expand description
A bitmask.
It has a restriction that all bits must be the same, except one. For example, 0b1110111
and
0b1000
are acceptable masks.
Trait Implementations
sourceimpl<T: Copy> BitAndAssign<Bit<T>> for u16where
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitAndAssign<Bit<T>> for u16where
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitand_assign(&mut self, rhs: Bit<T>)
fn bitand_assign(&mut self, rhs: Bit<T>)
Performs the
&=
operation. Read moresourceimpl<T: Copy> BitAndAssign<Bit<T>> for u32where
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitAndAssign<Bit<T>> for u32where
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitand_assign(&mut self, rhs: Bit<T>)
fn bitand_assign(&mut self, rhs: Bit<T>)
Performs the
&=
operation. Read moresourceimpl<T: Copy> BitAndAssign<Bit<T>> for u64where
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitAndAssign<Bit<T>> for u64where
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitand_assign(&mut self, rhs: Bit<T>)
fn bitand_assign(&mut self, rhs: Bit<T>)
Performs the
&=
operation. Read moresourceimpl<T: Copy> BitAndAssign<Bit<T>> for u8where
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitAndAssign<Bit<T>> for u8where
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitand_assign(&mut self, rhs: Bit<T>)
fn bitand_assign(&mut self, rhs: Bit<T>)
Performs the
&=
operation. Read moresourceimpl<T: Copy> BitAndAssign<Bit<T>> for usizewhere
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitAndAssign<Bit<T>> for usizewhere
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitand_assign(&mut self, rhs: Bit<T>)
fn bitand_assign(&mut self, rhs: Bit<T>)
Performs the
&=
operation. Read moresourceimpl<T: Copy> BitOrAssign<Bit<T>> for u16where
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitOrAssign<Bit<T>> for u16where
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitor_assign(&mut self, rhs: Bit<T>)
fn bitor_assign(&mut self, rhs: Bit<T>)
Performs the
|=
operation. Read moresourceimpl<T: Copy> BitOrAssign<Bit<T>> for u32where
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitOrAssign<Bit<T>> for u32where
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitor_assign(&mut self, rhs: Bit<T>)
fn bitor_assign(&mut self, rhs: Bit<T>)
Performs the
|=
operation. Read moresourceimpl<T: Copy> BitOrAssign<Bit<T>> for u64where
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitOrAssign<Bit<T>> for u64where
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitor_assign(&mut self, rhs: Bit<T>)
fn bitor_assign(&mut self, rhs: Bit<T>)
Performs the
|=
operation. Read moresourceimpl<T: Copy> BitOrAssign<Bit<T>> for u8where
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitOrAssign<Bit<T>> for u8where
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitor_assign(&mut self, rhs: Bit<T>)
fn bitor_assign(&mut self, rhs: Bit<T>)
Performs the
|=
operation. Read moresourceimpl<T: Copy> BitOrAssign<Bit<T>> for usizewhere
Self: Shl<T, Output = Self> + From<u8>,
impl<T: Copy> BitOrAssign<Bit<T>> for usizewhere
Self: Shl<T, Output = Self> + From<u8>,
sourcefn bitor_assign(&mut self, rhs: Bit<T>)
fn bitor_assign(&mut self, rhs: Bit<T>)
Performs the
|=
operation. Read moresourceimpl<T: Copy> From<Bit<T>> for u16where
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
impl<T: Copy> From<Bit<T>> for u16where
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
sourceimpl<T: Copy> From<Bit<T>> for u32where
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
impl<T: Copy> From<Bit<T>> for u32where
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
sourceimpl<T: Copy> From<Bit<T>> for u64where
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
impl<T: Copy> From<Bit<T>> for u64where
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
sourceimpl<T: Copy> From<Bit<T>> for u8where
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
impl<T: Copy> From<Bit<T>> for u8where
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
sourceimpl<T: Copy> From<Bit<T>> for usizewhere
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
impl<T: Copy> From<Bit<T>> for usizewhere
Self: Shl<T, Output = Self> + From<u8> + Not<Output = Self>,
impl<T: Copy> Copy for Bit<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Bit<T>where
T: RefUnwindSafe,
impl<T> Send for Bit<T>where
T: Send,
impl<T> Sync for Bit<T>where
T: Sync,
impl<T> Unpin for Bit<T>where
T: Unpin,
impl<T> UnwindSafe for Bit<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more