pub enum HybridEncoded<'a> {
Bitpacked(&'a [u8]),
Rle(&'a [u8], usize),
}
Expand description
The two possible states of an RLE-encoded run.
Variants§
Bitpacked(&'a [u8])
A bitpacked slice. The consumer must know its bit-width to unpack it.
Rle(&'a [u8], usize)
A RLE-encoded slice. The first attribute corresponds to the slice (that can be interpreted) the second attribute corresponds to the number of repetitions.
Trait Implementations§
Source§impl<'a> Clone for HybridEncoded<'a>
impl<'a> Clone for HybridEncoded<'a>
Source§fn clone(&self) -> HybridEncoded<'a>
fn clone(&self) -> HybridEncoded<'a>
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 moreSource§impl<'a> Debug for HybridEncoded<'a>
impl<'a> Debug for HybridEncoded<'a>
Source§impl<'a> PartialEq for HybridEncoded<'a>
impl<'a> PartialEq for HybridEncoded<'a>
impl<'a> Copy for HybridEncoded<'a>
impl<'a> Eq for HybridEncoded<'a>
impl<'a> StructuralPartialEq for HybridEncoded<'a>
Auto Trait Implementations§
impl<'a> Freeze for HybridEncoded<'a>
impl<'a> RefUnwindSafe for HybridEncoded<'a>
impl<'a> Send for HybridEncoded<'a>
impl<'a> Sync for HybridEncoded<'a>
impl<'a> Unpin for HybridEncoded<'a>
impl<'a> UnwindSafe for HybridEncoded<'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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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