[−][src]Struct argue::ArgParserBuilder
Struct used to create a ArgParser
with the builder pattern
Implementations
impl<'a> ArgParserBuilder<'a>
[src]
pub fn new(app_name: &'a str) -> Self
[src]
Not desired to be use to create the ArgParserBuilder
pub fn description(self, h: &'a str) -> ArgParserBuilder<'_>
[src]
Set the description of the ArgParser
pub fn version(self, v: &'a str) -> ArgParserBuilder<'_>
[src]
Set the version of the ArgParser
pub fn arguments(self, args: &'a [Argument<'a>]) -> ArgParserBuilder<'_>
[src]
Set the arguments
pub fn arg_output(self, arg: Argument<'a>) -> ArgParserBuilder<'_>
[src]
Set the arg_output,
pub fn build(self) -> ArgParser<'a>
[src]
Build it! TODO: return a result with some defined errors
Auto Trait Implementations
impl<'a> RefUnwindSafe for ArgParserBuilder<'a>
impl<'a> Send for ArgParserBuilder<'a>
impl<'a> Sync for ArgParserBuilder<'a>
impl<'a> Unpin for ArgParserBuilder<'a>
impl<'a> UnwindSafe for ArgParserBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,