Trait bitflags::BitFlags

source ·
pub trait BitFlags: ImplementedByBitFlagsMacro + Flags {
    type Iter: Iterator<Item = Self>;
    type IterNames: Iterator<Item = (&'static str, Self)>;
}
👎Deprecated: use the Flags trait instead

Required Associated Types§

source

type Iter: Iterator<Item = Self>

👎Deprecated: use the Flags trait instead

An iterator over enabled flags in an instance of the type.

source

type IterNames: Iterator<Item = (&'static str, Self)>

👎Deprecated: use the Flags trait instead

An iterator over the raw names and bits for enabled flags in an instance of the type.

Implementors§

source§

impl<B: Flags> BitFlags for B

§

type Iter = Iter<B>

§

type IterNames = IterNames<B>