[][src]Trait enumflags2::RawBitFlags

pub trait RawBitFlags: Copy + Clone + 'static {
type Type: BitFlagNum;
    fn all() -> Self::Type;
fn bits(self) -> Self::Type;
fn flag_list() -> &'static [Self]; }

A trait automatically implemented by derive(EnumFlags) to make the enum a valid type parameter for BitFlags.

Associated Types

type Type: BitFlagNum

The underlying integer type.

Loading content...

Required methods

fn all() -> Self::Type

Return a value with all flag bits set.

fn bits(self) -> Self::Type

Return the bits as a number type.

fn flag_list() -> &'static [Self]

Return a slice that contains each variant exactly one.

Loading content...

Implementors

Loading content...