[][src]Trait option_set::OptionSet

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

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

Associated Constants

const VARIANTS: &'static [Self]

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

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

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

Loading content...

Implementors

Loading content...