Struct trivial_argument_parser::argument::builder::ArgBuilder
source · pub struct ArgBuilder { /* private fields */ }
Implementations§
source§impl ArgBuilder
impl ArgBuilder
sourcepub fn new(arg_type: ArgType) -> ArgBuilder
pub fn new(arg_type: ArgType) -> ArgBuilder
Builder needs to be created with argument type specified.
pub fn set_short_name(self, short_name: char) -> ArgBuilder
pub fn set_long_name(self, long_name: &str) -> ArgBuilder
pub fn set_type(self, new_type: ArgType) -> ArgBuilder
pub fn build(&self) -> Result<Argument, String>
Auto Trait Implementations§
impl RefUnwindSafe for ArgBuilder
impl Send for ArgBuilder
impl Sync for ArgBuilder
impl Unpin for ArgBuilder
impl UnwindSafe for ArgBuilder
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