Trait FlagClass

Source
pub trait FlagClass:
    Sized
    + Clone
    + Copy
    + Hash
    + Eq {
    // Required methods
    fn name(&self) -> Cow<'_, str>;
    fn id(&self) -> FlagClassId;
}

Required Methods§

Source

fn name(&self) -> Cow<'_, str>

Source

fn id(&self) -> FlagClassId

Unique identifier for this FlagClass.

MUST NOT be 0. MUST be in the range [1, 0x7fff_ffff]

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.

Implementors§