pub struct PreparedCustomFunction {
pub id: u64,
pub kind: CustomFunctionKind,
pub attrs: SmallVec<[Arc<UOp>; 4]>,
pub buffer_indices: Vec<usize>,
pub fixedvars: HashMap<String, i64>,
pub dependencies: Vec<u64>,
pub runtime_vars: Vec<RuntimeVar>,
}Expand description
Prepared custom runtime function operation.
Fields§
§id: u64Unique operation identifier.
kind: CustomFunctionKindExplicit custom function kind (for example: EncDec).
attrs: SmallVec<[Arc<UOp>; 4]>Runtime descriptor attributes encoded by the IR body.
buffer_indices: Vec<usize>Buffer indices in ExecutionPlan order.
fixedvars: HashMap<String, i64>Bound variable values for this operation.
dependencies: Vec<u64>Operation IDs that must complete before this custom function runs.
runtime_vars: Vec<RuntimeVar>Cached (name, min_val, max_val) triples for every DefineVar
reachable from attrs. Populated at construction so
validate_runtime_var_bounds doesn’t re-toposort on every execute call.
Trait Implementations§
Source§impl Clone for PreparedCustomFunction
impl Clone for PreparedCustomFunction
Source§fn clone(&self) -> PreparedCustomFunction
fn clone(&self) -> PreparedCustomFunction
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 Freeze for PreparedCustomFunction
impl !RefUnwindSafe for PreparedCustomFunction
impl Send for PreparedCustomFunction
impl Sync for PreparedCustomFunction
impl Unpin for PreparedCustomFunction
impl UnsafeUnpin for PreparedCustomFunction
impl !UnwindSafe for PreparedCustomFunction
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