pub struct Arg {
pub name: Option<Name>,
pub value: Option<Expr>,
pub unpack: bool,
pub by_ref: bool,
pub span: Span,
}Expand description
A call argument.
Fields§
§name: Option<Name>Name of a named argument.
value: Option<Expr>None is a PHP 8.6 partial-application placeholder (?, or ... when unpack is set).
unpack: boolWhether the argument is spread with ....
by_ref: boolWhether the argument is prefixed with &.
span: SpanSource span.
Trait 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