pub enum ArrayBytesDecodeIntoTarget<'a> {
Fixed(&'a mut ArrayBytesFixedDisjointView<'a>),
Optional(Box<ArrayBytesDecodeIntoTarget<'a>>, &'a mut ArrayBytesFixedDisjointView<'a>),
}Expand description
A target for decoding array bytes into a preallocated output view.
This enum mirrors the structure of ArrayBytes to support decoding fixed-length
and optional data types into preallocated views.
Variants§
Fixed(&'a mut ArrayBytesFixedDisjointView<'a>)
Target for non-optional (fixed-length) data.
Optional(Box<ArrayBytesDecodeIntoTarget<'a>>, &'a mut ArrayBytesFixedDisjointView<'a>)
Target for optional data (nested data target + mask view).
The mask is always fixed-length (one byte per element).
Implementations§
Source§impl ArrayBytesDecodeIntoTarget<'_>
impl ArrayBytesDecodeIntoTarget<'_>
Sourcepub fn num_elements(&self) -> u64
pub fn num_elements(&self) -> u64
Return the number of elements in the target.
Trait Implementations§
Source§impl<'a> From<&'a mut ArrayBytesFixedDisjointView<'a>> for ArrayBytesDecodeIntoTarget<'a>
impl<'a> From<&'a mut ArrayBytesFixedDisjointView<'a>> for ArrayBytesDecodeIntoTarget<'a>
Source§fn from(view: &'a mut ArrayBytesFixedDisjointView<'a>) -> Self
fn from(view: &'a mut ArrayBytesFixedDisjointView<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for ArrayBytesDecodeIntoTarget<'a>
impl<'a> Send for ArrayBytesDecodeIntoTarget<'a>
impl<'a> Sync for ArrayBytesDecodeIntoTarget<'a>
impl<'a> !RefUnwindSafe for ArrayBytesDecodeIntoTarget<'a>
impl<'a> Unpin for ArrayBytesDecodeIntoTarget<'a>
impl<'a> !UnwindSafe for ArrayBytesDecodeIntoTarget<'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