#[non_exhaustive]pub enum ArgKind {
Value(Expr),
Spread(Expr),
ByRef(Expr),
Placeholder,
SpreadPlaceholder,
}Expand description
The form of a call argument.
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.
Value(Expr)
A plain value: f($x), or f(name: $x) when the argument has a name.
Spread(Expr)
A spread: f(...$args).
ByRef(Expr)
Call-time pass-by-reference: f(&$x), a fatal error since PHP 5.4.
Placeholder
The PHP 8.6 partial-application placeholder ?.
SpreadPlaceholder
The PHP 8.6 partial-application placeholder ....
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArgKind
impl RefUnwindSafe for ArgKind
impl Send for ArgKind
impl Sync for ArgKind
impl Unpin for ArgKind
impl UnsafeUnpin for ArgKind
impl UnwindSafe for ArgKind
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