pub enum ConstArg {
Int(u64),
Float(f64),
Str(String),
FloatArray(Vec<f64>),
List(Vec<ConstArg>),
}Expand description
Constant arguments extracted from the AST.
Holds assembly-time values (integers, floats, strings, float arrays) that are baked into node constructors rather than passed as wire inputs.
pub visibility is required so that NodeRegistration::build function
pointers (which are pub fields) can name this type.
Variants§
Int(u64)
An integer literal.
Float(f64)
A float literal.
Str(String)
A string literal.
FloatArray(Vec<f64>)
A list of float literals.
List(Vec<ConstArg>)
SRD-80b Phase C — workload-list const carrier for the
Const<Vec<C>> shape. Each inner ConstArg is one
element; <Vec<C> as ConstSource>::extract walks the
list and calls C::extract per element. Distinct from
FloatArray because the latter is the array-literal
lowering for the ConstVecF64 slot type while List
is the typed-element variadic-const slot.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConstArg
impl RefUnwindSafe for ConstArg
impl Send for ConstArg
impl Sync for ConstArg
impl Unpin for ConstArg
impl UnsafeUnpin for ConstArg
impl UnwindSafe for ConstArg
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