Trait ArgsParser

Source
pub trait ArgsParser {
    // Required methods
    fn parse(args: impl IntoIterator<Item = OsString>) -> Args;
    fn try_parse(
        args: impl IntoIterator<Item = OsString>,
    ) -> Result<Args, ProgramError>;
}

Required Methods§

Source

fn parse(args: impl IntoIterator<Item = OsString>) -> Args

Source

fn try_parse( args: impl IntoIterator<Item = OsString>, ) -> Result<Args, ProgramError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§