pub struct ArgumentBuilder<'a> { /* private fields */ }Expand description
A temporary builder object for configuring arguments.
This struct is returned by Parser::add_flag, add_option, and add_positional
and allows for chaining configuration methods like .with_short_name() or .required().
Implementations§
Source§impl<'a> ArgumentBuilder<'a>
impl<'a> ArgumentBuilder<'a>
Sourcepub fn with_short_name(self, short_name: char) -> Self
pub fn with_short_name(self, short_name: char) -> Self
Adds a short name (e.g., ‘-s’) to the argument.
Auto Trait Implementations§
impl<'a> Freeze for ArgumentBuilder<'a>
impl<'a> RefUnwindSafe for ArgumentBuilder<'a>
impl<'a> Send for ArgumentBuilder<'a>
impl<'a> Sync for ArgumentBuilder<'a>
impl<'a> Unpin for ArgumentBuilder<'a>
impl<'a> !UnwindSafe for ArgumentBuilder<'a>
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