Struct bitmac::bit_access::MSB
source · [−]pub struct MSB;
Expand description
Most Significant Bit is a rule for bit accessing when 0th bit is the most significant bit (the last bit in order).
For example:
use bitmac::{MSB, BitAccess};
assert_eq!(MSB::set(0b0000_0000u8, 0, true), 0b1000_0000u8);
Trait Implementations
sourceimpl PartialEq<MSB> for MSB
impl PartialEq<MSB> for MSB
impl Copy for MSB
impl Eq for MSB
impl StructuralEq for MSB
impl StructuralPartialEq for MSB
Auto Trait Implementations
impl RefUnwindSafe for MSB
impl Send for MSB
impl Sync for MSB
impl Unpin for MSB
impl UnwindSafe for MSB
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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