Struct Arg
pub struct Arg { /* private fields */ }Expand description
An owned command-line argument token.
Implementations§
§impl Arg
impl Arg
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Returns the owned token string.
pub fn is_option_separator(&self) -> bool
pub fn is_option_separator(&self) -> bool
Returns whether this token is the -- option separator.
pub fn is_flag_like(&self) -> bool
pub fn is_flag_like(&self) -> bool
Returns whether this token looks like a flag or option token.
pub fn is_positional(&self) -> bool
pub fn is_positional(&self) -> bool
Returns whether this token looks positional.
Trait Implementations§
§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