pub struct CallArg {
pub keyword: Option<(String, Span)>,
pub value: Expr,
}Expand description
One call argument: either positional (expr) or keyword (name = expr,
issue #110). Keyword arguments keep the name token’s exact span so binding
diagnostics are source-located on the name (unknown/duplicate keyword) or
the value (enum-domain, arity of the value expression) as appropriate.
Fields§
§keyword: Option<(String, Span)>The keyword name and its exact span, when this is a name = expr
argument.
value: ExprThe argument’s value expression.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallArg
impl RefUnwindSafe for CallArg
impl Send for CallArg
impl Sync for CallArg
impl Unpin for CallArg
impl UnsafeUnpin for CallArg
impl UnwindSafe for CallArg
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