pub struct Decoder<'a> { /* private fields */ }
Expand description
Decodes using the Byte Stream Split encoding.
§Implementation
A fixed size buffer is stored inline to support reading types of up to 8 bytes in size.
Implementations§
Source§impl<'a> Decoder<'a>
impl<'a> Decoder<'a>
pub fn try_new( values: &'a [u8], element_size: usize, ) -> Result<Self, ParquetError>
pub fn move_next(&mut self) -> bool
pub fn current_value(&self) -> &[u8] ⓘ
pub fn iter_converted<'b, T, F>( &'b mut self, converter: F, ) -> DecoderIterator<'a, 'b, T, F>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Decoder<'a>
impl<'a> RefUnwindSafe for Decoder<'a>
impl<'a> Send for Decoder<'a>
impl<'a> Sync for Decoder<'a>
impl<'a> Unpin for Decoder<'a>
impl<'a> UnwindSafe for Decoder<'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> 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