pub struct BitString<'a> { /* private fields */ }Expand description
A string of bits, which is not the same as a string of bytes: the last byte may be partly padding, and a key usage of one bit occupies one of them.
Implementations§
Source§impl<'a> BitString<'a>
impl<'a> BitString<'a>
Sourcepub fn unused_bits(self) -> u8
pub fn unused_bits(self) -> u8
How many bits of the last byte are padding.
Trait Implementations§
impl<'a> Copy for BitString<'a>
impl<'a> Eq for BitString<'a>
impl<'a> StructuralPartialEq for BitString<'a>
Auto Trait Implementations§
impl<'a> Freeze for BitString<'a>
impl<'a> RefUnwindSafe for BitString<'a>
impl<'a> Send for BitString<'a>
impl<'a> Sync for BitString<'a>
impl<'a> Unpin for BitString<'a>
impl<'a> UnsafeUnpin for BitString<'a>
impl<'a> UnwindSafe for BitString<'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