pub struct FunctionFlatTaskProfile {
pub path: Vec<u64>,
pub full_function_id: Option<(String, String, String)>,
pub full_profile_id: Option<(String, String, String)>,
pub description: Option<String>,
pub input: Input,
pub tasks: Vec<Option<FlatTaskProfile>>,
pub output: Expression,
pub type: FunctionType,
}Expand description
A flattened function task ready for execution.
Combines a Function definition with its corresponding Profile. Contains the compiled input, nested tasks with their weights, and the output expression.
Fields§
§path: Vec<u64>Path to this task in the Function tree (indices into tasks arrays).
full_function_id: Option<(String, String, String)>Full Function ID (owner, repository, commit) if from GitHub.
full_profile_id: Option<(String, String, String)>Full Profile ID (owner, repository, commit) if from GitHub.
description: Option<String>Description from the Function definition.
input: InputThe compiled input for this Function.
tasks: Vec<Option<FlatTaskProfile>>The flattened child tasks (None if task was skipped).
output: ExpressionThe output expression for computing the final score.
type: FunctionTypeThe Function type (scalar or vector).
Implementations§
Source§impl FunctionFlatTaskProfile
impl FunctionFlatTaskProfile
pub fn len(&self) -> usize
pub fn task_index_len(&self) -> usize
pub fn task_indices(&self) -> Vec<u64>
Trait Implementations§
Source§impl Clone for FunctionFlatTaskProfile
impl Clone for FunctionFlatTaskProfile
Source§fn clone(&self) -> FunctionFlatTaskProfile
fn clone(&self) -> FunctionFlatTaskProfile
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 FunctionFlatTaskProfile
impl RefUnwindSafe for FunctionFlatTaskProfile
impl Send for FunctionFlatTaskProfile
impl Sync for FunctionFlatTaskProfile
impl Unpin for FunctionFlatTaskProfile
impl UnwindSafe for FunctionFlatTaskProfile
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