pub struct BitsMut<'a>(/* private fields */);Expand description
A mutable reference to a byte array that allows for bit-level operations.
Implementations§
Source§impl BitsMut<'_>
impl BitsMut<'_>
pub fn to_ref(&self) -> BitsRef<'_>
pub fn shl(&mut self, n: usize) -> &mut Self
pub fn shr(&mut self, n: usize) -> &mut Self
pub fn or(&mut self, other: BitsRef<'_>) -> &mut Self
pub fn and(&mut self, other: BitsRef<'_>) -> &mut Self
pub fn xor(&mut self, other: BitsRef<'_>) -> &mut Self
pub fn bit_or<U: Into<u64>>(&mut self, other: U) -> &mut Self
pub fn bit_and<U: Into<u64>>(&mut self, other: U) -> &mut Self
pub fn bit_xor<U: Into<u64>>(&mut self, other: U) -> &mut Self
pub fn not(&mut self) -> &mut Self
pub fn reverse(&mut self) -> &mut Self
Trait Implementations§
impl<'a> Eq for BitsMut<'a>
impl<'a> StructuralPartialEq for BitsMut<'a>
Auto Trait Implementations§
impl<'a> Freeze for BitsMut<'a>
impl<'a> RefUnwindSafe for BitsMut<'a>
impl<'a> Send for BitsMut<'a>
impl<'a> Sync for BitsMut<'a>
impl<'a> Unpin for BitsMut<'a>
impl<'a> !UnwindSafe for BitsMut<'a>
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