pub trait BitFlags {
    type Item;

    // Required method
    fn contains(&self, value: Self::Item) -> bool;
}

Required Associated Types§

Required Methods§

source

fn contains(&self, value: Self::Item) -> bool

Implementations on Foreign Types§

source§

impl BitFlags for i8

source§

fn contains(&self, value: i8) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = i8

source§

impl BitFlags for i16

source§

fn contains(&self, value: i16) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = i16

source§

impl BitFlags for i32

source§

fn contains(&self, value: i32) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = i32

source§

impl BitFlags for i64

source§

fn contains(&self, value: i64) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = i64

source§

impl BitFlags for isize

source§

fn contains(&self, value: isize) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = isize

source§

impl BitFlags for u8

source§

fn contains(&self, value: u8) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = u8

source§

impl BitFlags for u16

source§

fn contains(&self, value: u16) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = u16

source§

impl BitFlags for u32

source§

fn contains(&self, value: u32) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = u32

source§

impl BitFlags for u64

source§

fn contains(&self, value: u64) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = u64

source§

impl BitFlags for usize

source§

fn contains(&self, value: usize) -> bool

Checks if the specified flags (bytes) are present.

§

type Item = usize

Implementors§