pub struct Bitstring<'a> {
pub bytes: &'a [u8],
pub bit_len: u16,
}
Expand description
A wrapper around arbitrary data with the specified bit length.
Fields§
§bytes: &'a [u8]
Underlying bytes (with or without termination bit).
bit_len: u16
Length of data in bits.
Implementations§
Trait Implementations§
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> 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