pub struct ParserBuilder { /* private fields */ }Expand description
A builder struct to create DefaultParser.
Implementations§
Source§impl ParserBuilder
impl ParserBuilder
pub fn build(self) -> DefaultParser
Sourcepub fn set_allow_partial_matching(self, allow: bool) -> Self
pub fn set_allow_partial_matching(self, allow: bool) -> Self
Set whether allow to partially match an option.
Sourcepub fn set_strip_leading_and_trailing_quotes(self, strip: bool) -> Self
pub fn set_strip_leading_and_trailing_quotes(self, strip: bool) -> Self
Set whether strip leading and trailing quotes in option value.
Sourcepub fn set_stop_at_non_option(self, stop_at_non_option: bool) -> Self
pub fn set_stop_at_non_option(self, stop_at_non_option: bool) -> Self
Set whether stop parsing options and consider all remain arguments as arguments.
If set to true, make sure the executable name is not passed to the parser.
Auto Trait Implementations§
impl Freeze for ParserBuilder
impl RefUnwindSafe for ParserBuilder
impl Send for ParserBuilder
impl Sync for ParserBuilder
impl Unpin for ParserBuilder
impl UnwindSafe for ParserBuilder
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