Enum parquet2::encoding::hybrid_rle::HybridEncoded
source · 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>
source§fn eq(&self, other: &HybridEncoded<'a>) -> bool
fn eq(&self, other: &HybridEncoded<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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