Choice

Trait Choice 

Source
pub trait Choice: FromStr + Display {
    // Required methods
    fn name(&self) -> &'static str;
    fn alt_name(&self) -> Option<&'static str>;
    fn help(&self) -> &'static str;
    fn usage() -> &'static str;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn alt_name(&self) -> Option<&'static str>

Source

fn help(&self) -> &'static str

Source

fn usage() -> &'static str

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§