pub(crate) enum Encoder<'a> {
Stateless,
Dictionary(Rows, Row<'a>),
Struct(Rows, Row<'a>),
List(Rows),
RunEndEncoded(Rows),
}
Variants§
Stateless
No additional encoder state is necessary
Dictionary(Rows, Row<'a>)
The encoding of the child array and the encoding of a null row
Struct(Rows, Row<'a>)
The row encoding of the child arrays and the encoding of a null row
It is necessary to encode to a temporary Rows
to avoid serializing
values that are masked by a null in the parent StructArray, otherwise
this would establish an ordering between semantically null values
List(Rows)
The row encoding of the child array
RunEndEncoded(Rows)
The row encoding of the values array
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Encoder<'a>
impl<'a> RefUnwindSafe for Encoder<'a>
impl<'a> Send for Encoder<'a>
impl<'a> Sync for Encoder<'a>
impl<'a> Unpin for Encoder<'a>
impl<'a> UnwindSafe for Encoder<'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