Skip to main content

Tag

Trait Tag 

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

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

Required Methods§

Source

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

Provided Methods§

Source

fn highlight(&self) -> bool

Whether this tag conveys actionable information worth showing prominently (destructive, elevated, streaming). Non-highlight tags (mutating, read-only, admin) are hidden in compact/highlight modes.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§