Struct glib_sys::GOptionFlags []

pub struct GOptionFlags {
    // some fields omitted
}

Methods

impl GOptionFlags

fn empty() -> GOptionFlags

Returns an empty set of flags.

fn all() -> GOptionFlags

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<GOptionFlags>

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

fn from_bits_truncate(bits: c_uint) -> GOptionFlags

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

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

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

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

fn insert(&mut self, other: GOptionFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: GOptionFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: GOptionFlags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for GOptionFlags

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

impl BitOr for GOptionFlags

type Output = GOptionFlags

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

impl BitXor for GOptionFlags

type Output = GOptionFlags

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

impl BitAnd for GOptionFlags

type Output = GOptionFlags

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

impl Sub for GOptionFlags

type Output = GOptionFlags

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

impl Not for GOptionFlags

type Output = GOptionFlags

fn not(self) -> GOptionFlags

impl FromIterator<GOptionFlags> for GOptionFlags

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

Derived Implementations

impl Hash for GOptionFlags

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 GOptionFlags

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

impl PartialOrd for GOptionFlags

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

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

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

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

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

impl Clone for GOptionFlags

fn clone(&self) -> GOptionFlags

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

impl Eq for GOptionFlags

impl PartialEq for GOptionFlags

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

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

impl Copy for GOptionFlags