pub trait Flags: Copy + Into<u64> {
    const ZERO: Self;

    fn is_set(&self, n: u32) -> bool;
fn set(&mut self, n: u32);
fn clear(&mut self, n: u32); fn is_clear(&self, n: u32) -> bool { ... } }
Expand description

Types that can be used as a flag set.

Associated Constants

The default value with no flags set.

Required methods

Returns true if the nth flag is set.

Sets the nth flag.

Clears the nth flag.

Provided methods

Returns true if the nth flag is not set.

Implementations on Foreign Types

Implementors