HasFlag

Trait HasFlag 

Source
pub trait HasFlag {
    // Required method
    fn has_flag(self, flag: Self) -> bool;
}
Expand description

Check if flag is set.

Typically implemented as (self & flag) == flag.

Required Methods§

Source

fn has_flag(self, flag: Self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§