pub trait FlagSet {
    type Flag: Flag;

    // Required methods
    fn is_set(&self, flag: Self::Flag) -> bool;
    fn as_names(&self) -> Vec<&'static str>;
}

Required Associated Types§

Required Methods§

source

fn is_set(&self, flag: Self::Flag) -> bool

Checks if a given flag is enabled.

source

fn as_names(&self) -> Vec<&'static str>

Returns the names of all enabled flags.

Implementors§