Trait paw_raw::ParseArgs[][src]

pub trait ParseArgs: Sized {
    type Error;
    fn parse_args() -> Result<Self, Self::Error>;
}
[]

Allow a type to be parsed as arguments to main.

Associated Types

type Error[src][]

Error type.

This error type needs to be compatible with the Result type returned by fn main.

Required methods

fn parse_args() -> Result<Self, Self::Error>[src][]

Try to create a new instance of the struct.

Returns a Result of either an instance of Self, or the associated Error type.

Implementors

impl ParseArgs for Args

impl ParseArgs for SubCommands

impl ParseArgs for Args