pub enum ArgKind {
Positional,
Flag {
short: Option<char>,
long: String,
aliases: Vec<String>,
},
Option {
short: Option<char>,
long: String,
aliases: Vec<String>,
},
}Expand description
Kind of argument (positional, flag, or option)
Variants§
Positional
Positional argument (e.g., myapp <file>)
Flag
Boolean flag without value (e.g., --verbose, -v)
Option
Option with value (e.g., --output file.txt, -o file.txt)
Trait Implementations§
impl Eq for ArgKind
impl StructuralPartialEq for ArgKind
Auto Trait Implementations§
impl Freeze for ArgKind
impl RefUnwindSafe for ArgKind
impl Send for ArgKind
impl Sync for ArgKind
impl Unpin for ArgKind
impl UnwindSafe for ArgKind
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