Struct glib_sys::GIOCondition []

pub struct GIOCondition {
    // some fields omitted
}

Methods

impl GIOCondition

fn empty() -> GIOCondition

Returns an empty set of flags.

fn all() -> GIOCondition

Returns the set containing all flags.

fn bits(&self) -> c_uint

Returns the raw value of the flags currently stored.

fn from_bits(bits: c_uint) -> Option<GIOCondition>

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

fn from_bits_truncate(bits: c_uint) -> GIOCondition

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

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

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

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

fn insert(&mut self, other: GIOCondition)

Inserts the specified flags in-place.

fn remove(&mut self, other: GIOCondition)

Removes the specified flags in-place.

fn toggle(&mut self, other: GIOCondition)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for GIOCondition

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

impl BitOr for GIOCondition

type Output = GIOCondition

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

impl BitXor for GIOCondition

type Output = GIOCondition

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

impl BitAnd for GIOCondition

type Output = GIOCondition

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

impl Sub for GIOCondition

type Output = GIOCondition

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

impl Not for GIOCondition

type Output = GIOCondition

fn not(self) -> GIOCondition

impl FromIterator<GIOCondition> for GIOCondition

fn from_iter<T: IntoIterator<Item=GIOCondition>>(iterator: T) -> GIOCondition

Derived Implementations

impl Hash for GIOCondition

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

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

impl Ord for GIOCondition

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

impl PartialOrd for GIOCondition

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

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

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

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

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

impl Clone for GIOCondition

fn clone(&self) -> GIOCondition

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

impl Eq for GIOCondition

impl PartialEq for GIOCondition

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

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

impl Copy for GIOCondition