pub enum ArgumentInput {
Positional(Value),
Named {
name: Symbol,
value: Value,
},
Receiver(Value),
Remainder(Value),
Unconsumed(Value),
}Expand description
One undecided input supplied to the neutral adaptation boundary.
The variants describe how an upstream adapter observed the value. They do not imply precedence, legality, parameter assignment, or default behavior.
Variants§
Positional(Value)
An ordinary positional input.
Named
One named occurrence. Duplicate names remain distinct occurrences.
Fields
Receiver(Value)
A call-site receiver offered for guest-policy interpretation.
Remainder(Value)
An already-expanded remainder input offered by an upstream adapter.
Unconsumed(Value)
An input an upstream adapter could not classify.
Trait Implementations§
Source§impl Clone for ArgumentInput
impl Clone for ArgumentInput
Source§fn clone(&self) -> ArgumentInput
fn clone(&self) -> ArgumentInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ArgumentInput
impl !UnwindSafe for ArgumentInput
impl Freeze for ArgumentInput
impl Send for ArgumentInput
impl Sync for ArgumentInput
impl Unpin for ArgumentInput
impl UnsafeUnpin for ArgumentInput
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