#[non_exhaustive]pub enum Arg<'a> {
Str(&'a str),
Int(i64),
Float(f64),
Decimal(&'a str),
Custom(&'a dyn CustomValue),
Unset,
DateTime(&'a DateTime<'a>),
}Expand description
A positional argument: slot i of the call site is args[i] (the
manifest’s slot order). Small on purpose: every variant is a code path in
the wasm. Non-exhaustive, so variants can be added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Str(&'a str)
A string.
Int(i64)
An integer.
Float(f64)
A float (finite values format; others are a Bad Operand).
Decimal(&'a str)
An exact decimal as number-literal text (-12.50, 1e3).
Custom(&'a dyn CustomValue)
An application value.
Unset
No value: Unresolved Variable.
DateTime(&'a DateTime<'a>)
A date/time (by reference, so Arg stays small).
Trait Implementations§
impl<'a> Copy for Arg<'a>
Source§impl Debug for Arg<'_>
As a derived Debug would show it, but an application value, which has
no Debug of its own, is Custom(..).
impl Debug for Arg<'_>
As a derived Debug would show it, but an application value, which has
no Debug of its own, is Custom(..).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Arg<'a>
impl<'a> !Send for Arg<'a>
impl<'a> !Sync for Arg<'a>
impl<'a> !UnwindSafe for Arg<'a>
impl<'a> Freeze for Arg<'a>
impl<'a> Unpin for Arg<'a>
impl<'a> UnsafeUnpin for Arg<'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