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) -> FlagWriteId;
fn flags_written(&self) -> Vec<Self::FlagType>;
}Required Associated Types§
Required Methods§
fn name(&self) -> Cow<'_, str>
fn class(&self) -> Option<Self::FlagClass>
Sourcefn id(&self) -> FlagWriteId
fn id(&self) -> FlagWriteId
Unique identifier for this FlagWrite.
MUST NOT be 0. MUST be in the range [1, 0x7fff_ffff]
fn flags_written(&self) -> Vec<Self::FlagType>
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.