pub struct ArgumentState {
pub name: &'static str,
pub given: bool,
pub satisfied: bool,
}Expand description
Presence information exposed across a flattened CommandArgs boundary.
Fields§
§name: &'static strThe canonical name used in diagnostics.
given: boolWhether argv or an environment fallback supplied the argument.
satisfied: boolWhether the argument is satisfied, including an unconditional default.
Trait Implementations§
Source§impl Clone for ArgumentState
impl Clone for ArgumentState
Source§fn clone(&self) -> ArgumentState
fn clone(&self) -> ArgumentState
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 moreimpl Copy for ArgumentState
Source§impl Debug for ArgumentState
impl Debug for ArgumentState
impl Eq for ArgumentState
Source§impl PartialEq for ArgumentState
impl PartialEq for ArgumentState
impl StructuralPartialEq for ArgumentState
Auto Trait Implementations§
impl Freeze for ArgumentState
impl RefUnwindSafe for ArgumentState
impl Send for ArgumentState
impl Sync for ArgumentState
impl Unpin for ArgumentState
impl UnsafeUnpin for ArgumentState
impl UnwindSafe for ArgumentState
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