pub struct GeneratorOutput {
pub row_map: Vec<u32>,
pub columns: Vec<ArrayRef>,
}Expand description
Table-valued output of a LocyGenerator::generate call.
columns[c] holds the values of output variable c (for every emitted
tuple), and row_map[i] is the index of the input row that produced emitted
tuple i. All columns and row_map share the same length (the total number
of emitted tuples), which may be more or fewer than the input row count.
Fields§
§row_map: Vec<u32>For each emitted tuple, the input row index it was generated from.
columns: Vec<ArrayRef>One array per output variable (in GenSignature::outputs order); each has
length row_map.len().
Trait Implementations§
Source§impl Clone for GeneratorOutput
impl Clone for GeneratorOutput
Source§fn clone(&self) -> GeneratorOutput
fn clone(&self) -> GeneratorOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GeneratorOutput
impl !UnwindSafe for GeneratorOutput
impl Freeze for GeneratorOutput
impl Send for GeneratorOutput
impl Sync for GeneratorOutput
impl Unpin for GeneratorOutput
impl UnsafeUnpin for GeneratorOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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