pub struct BoundArgument { /* private fields */ }Expand description
An input paired with its exact origin.
Implementations§
Source§impl BoundArgument
impl BoundArgument
Sourcepub fn new(input: ArgumentInput, origin: ArgumentOrigin) -> Self
pub fn new(input: ArgumentInput, origin: ArgumentOrigin) -> Self
Creates one explicitly originated input.
Sourcepub const fn input(&self) -> &ArgumentInput
pub const fn input(&self) -> &ArgumentInput
Returns the undecided input classification.
Sourcepub const fn origin(&self) -> &ArgumentOrigin
pub const fn origin(&self) -> &ArgumentOrigin
Returns the exact input origin.
Trait Implementations§
Source§impl Clone for BoundArgument
impl Clone for BoundArgument
Source§fn clone(&self) -> BoundArgument
fn clone(&self) -> BoundArgument
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 BoundArgument
impl !UnwindSafe for BoundArgument
impl Freeze for BoundArgument
impl Send for BoundArgument
impl Sync for BoundArgument
impl Unpin for BoundArgument
impl UnsafeUnpin for BoundArgument
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