pub struct ExprArg {
pub position: usize,
pub nesting: usize,
}Expand description
A positional argument placeholder.
Represents a reference to an input value by position. During substitution,
arg(n) is replaced with the nth value from the input.
§Examples
arg(0) // refers to the first input value
arg(1) // refers to the second input valueFields§
§position: usizeThe zero-based position of the argument.
nesting: usizeWhich “argument scope” this references. This is the number of scopes up from the current scope. Scopes are created by functional expressions like Expr::Map.
Implementations§
Trait Implementations§
Source§impl From<ExprArg> for SourceTable
impl From<ExprArg> for SourceTable
impl Copy for ExprArg
impl Eq for ExprArg
impl StructuralPartialEq for ExprArg
Auto Trait Implementations§
impl Freeze for ExprArg
impl RefUnwindSafe for ExprArg
impl Send for ExprArg
impl Sync for ExprArg
impl Unpin for ExprArg
impl UnwindSafe for ExprArg
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.