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