Struct sarge::ArgumentRef
source · pub struct ArgumentRef<T: ArgumentType> { /* private fields */ }Expand description
An internal tag to an argument. Use this to retrieve the value of an
argument from an Arguments.
Implementations§
source§impl<T: ArgumentType> ArgumentRef<T>
impl<T: ArgumentType> ArgumentRef<T>
Trait Implementations§
source§impl<T: Clone + ArgumentType> Clone for ArgumentRef<T>
impl<T: Clone + ArgumentType> Clone for ArgumentRef<T>
source§fn clone(&self) -> ArgumentRef<T>
fn clone(&self) -> ArgumentRef<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug + ArgumentType> Debug for ArgumentRef<T>
impl<T: Debug + ArgumentType> Debug for ArgumentRef<T>
source§impl<T: PartialEq + ArgumentType> PartialEq for ArgumentRef<T>
impl<T: PartialEq + ArgumentType> PartialEq for ArgumentRef<T>
source§fn eq(&self, other: &ArgumentRef<T>) -> bool
fn eq(&self, other: &ArgumentRef<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T: Copy + ArgumentType> Copy for ArgumentRef<T>
impl<T: Eq + ArgumentType> Eq for ArgumentRef<T>
impl<T: ArgumentType> StructuralPartialEq for ArgumentRef<T>
Auto Trait Implementations§
impl<T> Freeze for ArgumentRef<T>
impl<T> RefUnwindSafe for ArgumentRef<T>
impl<T> Send for ArgumentRef<T>
impl<T> Sync for ArgumentRef<T>
impl<T> Unpin for ArgumentRef<T>
impl<T> UnwindSafe for ArgumentRef<T>
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