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<HybridEncoded<'a>> for HybridEncoded<'a>
impl<'a> PartialEq<HybridEncoded<'a>> 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 ==
.