pub struct AlignedBitmapSlice<'a, T: BitChunk> { /* private fields */ }
Expand description
Represents a bitmap split in three portions, a prefix, a suffix and an aligned bulk section in the middle.
Implementations§
Source§impl<'a, T: BitChunk> AlignedBitmapSlice<'a, T>
impl<'a, T: BitChunk> AlignedBitmapSlice<'a, T>
pub fn prefix(&self) -> T
pub fn bulk_iter(&self) -> Copied<Iter<'a, T>>
pub fn bulk(&self) -> &'a [T]
pub fn suffix(&self) -> T
Sourcepub fn prefix_bitlen(&self) -> usize
pub fn prefix_bitlen(&self) -> usize
The length (in bits) of the portion of the bitmap found in prefix.
Sourcepub fn bulk_bitlen(&self) -> usize
pub fn bulk_bitlen(&self) -> usize
The length (in bits) of the portion of the bitmap found in bulk.
Sourcepub fn suffix_bitlen(&self) -> usize
pub fn suffix_bitlen(&self) -> usize
The length (in bits) of the portion of the bitmap found in suffix.
pub fn new(bytes: &'a [u8], offset: usize, len: usize) -> Self
Trait Implementations§
Source§impl<'a, T: Clone + BitChunk> Clone for AlignedBitmapSlice<'a, T>
impl<'a, T: Clone + BitChunk> Clone for AlignedBitmapSlice<'a, T>
Source§fn clone(&self) -> AlignedBitmapSlice<'a, T>
fn clone(&self) -> AlignedBitmapSlice<'a, T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, T> Freeze for AlignedBitmapSlice<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for AlignedBitmapSlice<'a, T>
impl<'a, T> Send for AlignedBitmapSlice<'a, T>
impl<'a, T> Sync for AlignedBitmapSlice<'a, T>
impl<'a, T> Unpin for AlignedBitmapSlice<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for AlignedBitmapSlice<'a, T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more