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

pub struct DCBFlags {
    // some fields omitted
}

Methods

impl DCBFlags

fn empty() -> DCBFlags

Returns an empty set of flags.

fn all() -> DCBFlags

Returns the set containing all flags.

fn bits(&self) -> WORD

Returns the raw value of the flags currently stored.

fn from_bits(bits: WORD) -> Option<DCBFlags>

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

fn from_bits_truncate(bits: WORD) -> DCBFlags

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: DCBFlags) -> bool

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

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

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

fn insert(&mut self, other: DCBFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: DCBFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: DCBFlags)

Toggles the specified flags in-place.

Trait Implementations

impl BitOr for DCBFlags

type Output = DCBFlags

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

impl BitXor for DCBFlags

type Output = DCBFlags

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

impl BitAnd for DCBFlags

type Output = DCBFlags

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

impl Sub for DCBFlags

type Output = DCBFlags

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

impl Not for DCBFlags

type Output = DCBFlags

fn not(self) -> DCBFlags

impl Debug for DCBFlags

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Hash for DCBFlags

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

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

impl Ord for DCBFlags

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

impl PartialOrd for DCBFlags

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

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

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

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

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

impl Clone for DCBFlags

fn clone(&self) -> DCBFlags

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

impl Eq for DCBFlags

impl PartialEq for DCBFlags

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

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

impl Copy for DCBFlags