Struct serial_win::PurgeFlags [-] [+] [src]

pub struct PurgeFlags {
    // some fields omitted
}

Methods

impl PurgeFlags

fn empty() -> PurgeFlags

Returns an empty set of flags.

fn all() -> PurgeFlags

Returns the set containing all flags.

fn bits(&self) -> DWORD

Returns the raw value of the flags currently stored.

fn from_bits(bits: DWORD) -> Option<PurgeFlags>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: DWORD) -> PurgeFlags

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: PurgeFlags) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: PurgeFlags) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: PurgeFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: PurgeFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: PurgeFlags)

Toggles the specified flags in-place.

Trait Implementations

impl BitOr for PurgeFlags

type Output = PurgeFlags

fn bitor(self, other: PurgeFlags) -> PurgeFlags

impl BitXor for PurgeFlags

type Output = PurgeFlags

fn bitxor(self, other: PurgeFlags) -> PurgeFlags

impl BitAnd for PurgeFlags

type Output = PurgeFlags

fn bitand(self, other: PurgeFlags) -> PurgeFlags

impl Sub for PurgeFlags

type Output = PurgeFlags

fn sub(self, other: PurgeFlags) -> PurgeFlags

impl Not for PurgeFlags

type Output = PurgeFlags

fn not(self) -> PurgeFlags

Derived Implementations

impl Hash for PurgeFlags

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for PurgeFlags

fn cmp(&self, __arg_0: &PurgeFlags) -> Ordering

impl PartialOrd for PurgeFlags

fn partial_cmp(&self, __arg_0: &PurgeFlags) -> Option<Ordering>

fn lt(&self, __arg_0: &PurgeFlags) -> bool

fn le(&self, __arg_0: &PurgeFlags) -> bool

fn gt(&self, __arg_0: &PurgeFlags) -> bool

fn ge(&self, __arg_0: &PurgeFlags) -> bool

impl Clone for PurgeFlags

fn clone(&self) -> PurgeFlags

fn clone_from(&mut self, source: &Self)

impl Eq for PurgeFlags

impl PartialEq for PurgeFlags

fn eq(&self, __arg_0: &PurgeFlags) -> bool

fn ne(&self, __arg_0: &PurgeFlags) -> bool

impl Copy for PurgeFlags