[][src]Struct argue::ArgParserBuilder

pub struct ArgParserBuilder<'a> { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.