pub struct VarLenStore { /* private fields */ }Expand description
Packed variable-length sequence storage.
Uses the Arrow ListArray pattern: a flat contiguous data array plus an offsets array that marks sequence boundaries.
Implementations§
Source§impl VarLenStore
impl VarLenStore
Sourcepub fn num_sequences(&self) -> usize
pub fn num_sequences(&self) -> usize
Number of sequences stored.
Sourcepub fn total_elements(&self) -> usize
pub fn total_elements(&self) -> usize
Total number of elements across all sequences.
Sourcepub fn sequence_len(&self, index: usize) -> usize
pub fn sequence_len(&self, index: usize) -> usize
Length of the i-th sequence.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VarLenStore
impl RefUnwindSafe for VarLenStore
impl Send for VarLenStore
impl Sync for VarLenStore
impl Unpin for VarLenStore
impl UnwindSafe for VarLenStore
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