Skip to main content

Names

Trait Names 

Source
pub trait Names {
    // Required method
    fn contains(&self, word: &[u8]) -> bool;
}
Expand description

The spellings of a subcommand: one name, or a name and its aliases.

Required Methods§

Source

fn contains(&self, word: &[u8]) -> bool

Whether word is one of them.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Names for &str

Source§

fn contains(&self, word: &[u8]) -> bool

Source§

impl<const N: usize> Names for [&str; N]

Source§

fn contains(&self, word: &[u8]) -> bool

Implementors§