[][src]Trait paw::ParseArgs

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

Allow a type to be parsed as arguments to main.

Associated Types

type Error

Error type.

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

Loading content...

Required methods

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

Try to create a new instance of the struct.

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

Loading content...

Implementors

impl ParseArgs for Args[src]

type Error = Error

impl ParseArgs for ArgsOs[src]

type Error = Error

Loading content...