Flags

Trait Flags 

Source
pub trait Flags:
    BitOr<Self, Output = Self>
    + BitOrAssign<Self>
    + Debug
    + Default
    + Shareable {
    // Required method
    fn exclude(self, other: Self) -> Self;
}
Expand description

A type that can be treated as flags.

Automatically implemented on types implementing all three bitwise operations &|^.

Required Methods§

Source

fn exclude(self, other: Self) -> Self

Exclude a portion of the flags.

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§

Source§

impl<T> Flags for T
where T: BitOps + Debug + Default + Shareable,