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§
fn name(&self) -> &'static str
fn alt_name(&self) -> Option<&'static str>
fn help(&self) -> &'static str
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.