pub struct Arg { /* private fields */ }Expand description
An owned command-line argument token.
Implementations§
Source§impl Arg
impl Arg
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Returns the owned token string.
Sourcepub fn is_option_separator(&self) -> bool
pub fn is_option_separator(&self) -> bool
Returns whether this token is the -- option separator.
Sourcepub fn is_flag_like(&self) -> bool
pub fn is_flag_like(&self) -> bool
Returns whether this token looks like a flag or option token.
Sourcepub fn is_positional(&self) -> bool
pub fn is_positional(&self) -> bool
Returns whether this token looks positional.
Trait Implementations§
Source§impl FromIterator<Arg> for RawArgs
impl FromIterator<Arg> for RawArgs
impl Eq for Arg
impl StructuralPartialEq for Arg
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnsafeUnpin for Arg
impl UnwindSafe for Arg
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