pub struct InlineBitList { /* private fields */ }Implementations§
Source§impl InlineBitList
impl InlineBitList
pub const NO_BITS: Self
pub const TRUE: Self
pub const FALSE: Self
pub const MAX_INLINE_BITS: u32 = InlineBitList::DATA_BITS
pub const fn to_list(self) -> BitList
pub const fn as_list(&self) -> &BitList
pub const fn as_word_bits(&self) -> WordBits ⓘ
pub const fn concat(self, msb: Self) -> Option<Self>
pub const fn new_masked(data: usize, count: u32) -> Self
pub const fn data(&self) -> usize
pub const fn len(&self) -> usize
pub const fn last_bit(&self) -> Option<bool>
pub const fn first_bit(&self) -> Option<bool>
pub const fn get_bit(&self, index: usize) -> Option<bool>
pub fn set_bit(&mut self, index: usize, value: bool) -> Option<bool>
pub const fn to_le_bytes<const N: usize>(&self) -> [u8; N]
pub const fn is_empty(&self) -> bool
pub const fn get_raw_repr(&self) -> NonZeroUsize
pub const fn word_mask(&self) -> usize
pub fn set_data(&mut self, data: usize) -> usize
pub const fn get_range(&self, range: Range<usize>) -> Option<Self>
pub fn set_at(&mut self, index: usize, value: Self) -> bool
Trait Implementations§
Source§impl Clone for InlineBitList
impl Clone for InlineBitList
Source§fn clone(&self) -> InlineBitList
fn clone(&self) -> InlineBitList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for InlineBitList
impl PartialEq for InlineBitList
Source§fn eq(&self, other: &InlineBitList) -> bool
fn eq(&self, other: &InlineBitList) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InlineBitList
impl Eq for InlineBitList
impl StructuralPartialEq for InlineBitList
Auto Trait Implementations§
impl Freeze for InlineBitList
impl RefUnwindSafe for InlineBitList
impl Send for InlineBitList
impl Sync for InlineBitList
impl Unpin for InlineBitList
impl UnsafeUnpin for InlineBitList
impl UnwindSafe for InlineBitList
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