pub trait FlagPrimitive:
Sized
+ Not<Output = Self>
+ BitAnd<Self, Output = Self>
+ BitOr<Self, Output = Self>
+ BitAnd<Self, Output = Self>
+ BitXor<Self, Output = Self>
+ Shl<Self, Output = Self>
+ Shr<Self, Output = Self>
+ Clone
+ Copy
+ Debug
+ Eq {
const ZERO: Self;
const ONE: Self;
}Expand description
A trait to define which primitives can be used as a primitive for a flags. Restricted to unsigned types for ease of use.
Required Associated Constants§
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.