Trait Argument

Source
pub trait Argument: Sized {
    // Required method
    fn parse(arg: impl AsRef<str>, arg: ArgRef) -> Result<Self, Error>;
}

Required Methods§

Source

fn parse(arg: impl AsRef<str>, arg: ArgRef) -> Result<Self, Error>

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§

Source§

impl<T: FromStr> Argument for T
where <T as FromStr>::Err: StdError + 'static,