Skip to main content

Category

Trait Category 

Source
pub trait Category:
    Copy
    + Eq
    + Hash
    + Glyph
    + 'static {
    // Required methods
    fn label(&self) -> &'static str;
    fn order(&self) -> u8;

    // Provided methods
    fn cli_prefix(&self) -> &'static str { ... }
    fn cli_name(&self) -> &'static str { ... }
    fn description(&self) -> &'static str { ... }
}

Required Methods§

Source

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

Source

fn order(&self) -> u8

Provided Methods§

Source

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

CLI prefix for commands in this category (e.g. “certmesh “, “mdns “). Used by compact/stripped rendering to derive short command names.

Source

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

Short CLI name shown in overview mode (e.g. “certmesh”, “mdns”).

Source

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

One-line description of what this category does.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§