Skip to main content

Scope

Trait Scope 

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

    // Provided method
    fn is_default(&self) -> bool { ... }
}

Required Methods§

Source

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

Provided Methods§

Source

fn is_default(&self) -> bool

Whether this is the default/public scope. Commands with the default scope are shown first in compact summaries.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§