pub enum FlatTaskProfile {
Function(FunctionFlatTaskProfile),
MapFunction(MapFunctionFlatTaskProfile),
VectorCompletion(VectorCompletionFlatTaskProfile),
MapVectorCompletion(MapVectorCompletionFlatTaskProfile),
}Expand description
A flattened task ready for execution.
Combines Function structure with Profile weights into an executable node. Can be a function (with nested tasks), a mapped array of functions, a vector completion, or a mapped array of vector completions.
Variants§
Function(FunctionFlatTaskProfile)
A single function task with nested tasks.
MapFunction(MapFunctionFlatTaskProfile)
Multiple function tasks from a mapped expression.
VectorCompletion(VectorCompletionFlatTaskProfile)
A single vector completion task.
MapVectorCompletion(MapVectorCompletionFlatTaskProfile)
Multiple vector completion tasks from a mapped expression.
Implementations§
Source§impl FlatTaskProfile
impl FlatTaskProfile
Sourcepub fn vector_completion_ftps(
&self,
) -> impl Iterator<Item = &VectorCompletionFlatTaskProfile>
pub fn vector_completion_ftps( &self, ) -> impl Iterator<Item = &VectorCompletionFlatTaskProfile>
Returns an iterator over all vector completion tasks.
Recursively traverses function tasks to collect all leaf vector completions.
Sourcepub fn task_index_len(&self) -> usize
pub fn task_index_len(&self) -> usize
Returns the number of task indices needed for output assembly.
Trait Implementations§
Source§impl Clone for FlatTaskProfile
impl Clone for FlatTaskProfile
Source§fn clone(&self) -> FlatTaskProfile
fn clone(&self) -> FlatTaskProfile
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for FlatTaskProfile
impl RefUnwindSafe for FlatTaskProfile
impl Send for FlatTaskProfile
impl Sync for FlatTaskProfile
impl Unpin for FlatTaskProfile
impl UnwindSafe for FlatTaskProfile
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> 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