Trait DefaultName

Source
pub trait DefaultName {
    // Provided method
    fn default_name() -> Option<&'static str> { ... }
}
Expand description

Default name for some type.

This name is used in the help message to indicate the type of an argument.

Provided Methods§

Source

fn default_name() -> Option<&'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.

Implementations on Foreign Types§

Source§

impl DefaultName for bool

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for f32

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for f64

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for i8

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for i16

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for i32

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for i64

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for isize

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for u8

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for u16

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for u32

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for u64

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for usize

Source§

fn default_name() -> Option<&'static str>

Source§

impl DefaultName for String

Source§

fn default_name() -> Option<&'static str>

Implementors§