pub struct Arg {
pub label: Option<Ident>,
pub is_var: bool,
pub spread: bool,
pub value: Expr,
pub span: Span,
}Expand description
One argument at a call site.
Fields§
§label: Option<Ident>Static argument labels are parameter names and part of the API contract.
is_var: boolfill(var output) marks an inout alias at the call site.
spread: bool...array spreads into a variadic parameter.
value: Expr§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnsafeUnpin for Arg
impl UnwindSafe for Arg
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