pub trait FlagWrite: Sized + Clone + Copy {
    type FlagType: Flag;
    type FlagClass: FlagClass;

    // Required methods
    fn name(&self) -> Cow<'_, str>;
    fn class(&self) -> Option<Self::FlagClass>;
    fn id(&self) -> u32;
    fn flags_written(&self) -> Vec<Self::FlagType>;
}

Required Associated Types§

Required Methods§

source

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

source

fn class(&self) -> Option<Self::FlagClass>

source

fn id(&self) -> u32

Unique identifier for this FlagWrite.

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

source

fn flags_written(&self) -> Vec<Self::FlagType>

Object Safety§

This trait is not object safe.

Implementors§