Struct glib_sys::GLogLevelFlags []

pub struct GLogLevelFlags {
    // some fields omitted
}

Methods

impl GLogLevelFlags

fn empty() -> GLogLevelFlags

Returns an empty set of flags.

fn all() -> GLogLevelFlags

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

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

fn from_bits_truncate(bits: c_uint) -> GLogLevelFlags

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

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

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

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

fn insert(&mut self, other: GLogLevelFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: GLogLevelFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: GLogLevelFlags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for GLogLevelFlags

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

impl BitOr for GLogLevelFlags

type Output = GLogLevelFlags

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

impl BitXor for GLogLevelFlags

type Output = GLogLevelFlags

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

impl BitAnd for GLogLevelFlags

type Output = GLogLevelFlags

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

impl Sub for GLogLevelFlags

type Output = GLogLevelFlags

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

impl Not for GLogLevelFlags

type Output = GLogLevelFlags

fn not(self) -> GLogLevelFlags

impl FromIterator<GLogLevelFlags> for GLogLevelFlags

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

Derived Implementations

impl Hash for GLogLevelFlags

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 GLogLevelFlags

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

impl PartialOrd for GLogLevelFlags

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

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

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

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

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

impl Clone for GLogLevelFlags

fn clone(&self) -> GLogLevelFlags

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

impl Eq for GLogLevelFlags

impl PartialEq for GLogLevelFlags

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

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

impl Copy for GLogLevelFlags