pub enum RuntimeCondition<'a> {
DynamicCompileTimeInput {
operator: OperatorId,
input_index: u16,
value: ValueId,
required_error_check: bool,
},
ShiftInRange {
operator: OperatorId,
value: ValueId,
maximum: u8,
},
NonZero {
operator: OperatorId,
value: ValueId,
},
Int32MultiplyInRange {
operator: OperatorId,
left: ValueId,
right: ValueId,
shift: ValueId,
},
PowDomain {
operator: OperatorId,
base: ValueId,
exponent: ValueId,
},
IndicesInRange {
operator: OperatorId,
indices: ValueId,
upper_bound: u64,
},
ScatterIndicesUnique {
operator: OperatorId,
indices: ValueId,
},
VariableState {
operator: OperatorId,
value: ValueId,
},
Custom {
operator: OperatorId,
domain: &'a str,
name: &'a str,
},
}Expand description
Conditions that a provider may need to lower or inspect at execution time.
REQUIRE failures make a TOSA graph unpredictable and need not be detected. Dynamic CTC
inputs can affect mandatory ERROR_IF checks and therefore are classified separately.
Variants§
DynamicCompileTimeInput
ShiftInRange
NonZero
Int32MultiplyInRange
PowDomain
IndicesInRange
ScatterIndicesUnique
VariableState
Custom
Implementations§
Source§impl RuntimeCondition<'_>
impl RuntimeCondition<'_>
Sourcepub const fn error_detection_required(self) -> bool
pub const fn error_detection_required(self) -> bool
Whether a failing condition must be surfaced as a TOSA error for predictable inputs.
Trait Implementations§
Source§impl<'a> Clone for RuntimeCondition<'a>
impl<'a> Clone for RuntimeCondition<'a>
Source§fn clone(&self) -> RuntimeCondition<'a>
fn clone(&self) -> RuntimeCondition<'a>
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 moreimpl<'a> Copy for RuntimeCondition<'a>
Source§impl<'a> Debug for RuntimeCondition<'a>
impl<'a> Debug for RuntimeCondition<'a>
impl<'a> Eq for RuntimeCondition<'a>
Source§impl<'a> PartialEq for RuntimeCondition<'a>
impl<'a> PartialEq for RuntimeCondition<'a>
Source§fn eq(&self, other: &RuntimeCondition<'a>) -> bool
fn eq(&self, other: &RuntimeCondition<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for RuntimeCondition<'a>
Auto Trait Implementations§
impl<'a> Freeze for RuntimeCondition<'a>
impl<'a> RefUnwindSafe for RuntimeCondition<'a>
impl<'a> Send for RuntimeCondition<'a>
impl<'a> Sync for RuntimeCondition<'a>
impl<'a> Unpin for RuntimeCondition<'a>
impl<'a> UnsafeUnpin for RuntimeCondition<'a>
impl<'a> UnwindSafe for RuntimeCondition<'a>
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