Trait option_set::OptionSet

source ·
pub trait OptionSet:
    Copy
    + Default
    + Eq
    + BitAnd<Output = Self>
    + BitOrAssign
    + 'static {
    const VARIANTS: &'static [Self];
    const NAMES: &'static [&'static str];
}
Expand description

Trait for bit flags that forwards to std traits for useful bit operators.

Required Associated Constants§

source

const VARIANTS: &'static [Self]

The basis flags (in the algebraic sense): one for each independent option.

source

const NAMES: &'static [&'static str]

The corresponding names. VARIANTS.len() == NAMES.len() must always hold.

Object Safety§

This trait is not object safe.

Implementors§