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§
impl Copy for MSB
impl Eq for MSB
impl StructuralPartialEq for MSB
Auto Trait Implementations§
impl Freeze for MSB
impl RefUnwindSafe for MSB
impl Send for MSB
impl Sync for MSB
impl Unpin for MSB
impl UnwindSafe for MSB
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more