pub enum ArgKind {
Positional,
Named(StrId),
Spread,
SpreadNamed,
}Expand description
Variants§
Positional
A positional argument.
Named(StrId)
A named argument (PHP f(x: 1), Python f(x=1)); the name is a
string of the calling module.
Spread
A spread (PHP ...$a, Python *a): an array contributes positional
arguments; a map contributes its integer-keyed values positionally
and its string-keyed values as named arguments.
SpreadNamed
A named spread (Python **kw): a map whose keys must all be strings.
Trait Implementations§
impl Copy for ArgKind
impl Eq for ArgKind
Source§impl Ord for ArgKind
impl Ord for ArgKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ArgKind
impl PartialOrd for ArgKind
impl StructuralPartialEq for ArgKind
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