Struct glib::SignalFlags
source · [−]pub struct SignalFlags { /* private fields */ }Implementations
sourceimpl SignalFlags
impl SignalFlags
pub const RUN_FIRST: SignalFlags = _
pub const RUN_LAST: SignalFlags = _
pub const RUN_CLEANUP: SignalFlags = _
pub const NO_RECURSE: SignalFlags = _
pub const DETAILED: SignalFlags = _
pub const ACTION: SignalFlags = _
pub const NO_HOOKS: SignalFlags = _
pub const MUST_COLLECT: SignalFlags = _
pub const DEPRECATED: SignalFlags = _
sourcepub const fn empty() -> SignalFlags
pub const fn empty() -> SignalFlags
Returns an empty set of flags
sourcepub const fn all() -> SignalFlags
pub const fn all() -> SignalFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<SignalFlags>
pub fn from_bits(bits: u32) -> Option<SignalFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> SignalFlags
pub const fn from_bits_truncate(bits: u32) -> SignalFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> SignalFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> SignalFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: SignalFlags) -> bool
pub const fn intersects(&self, other: SignalFlags) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: SignalFlags) -> bool
pub const fn contains(&self, other: SignalFlags) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: SignalFlags)
pub fn insert(&mut self, other: SignalFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: SignalFlags)
pub fn remove(&mut self, other: SignalFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: SignalFlags)
pub fn toggle(&mut self, other: SignalFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: SignalFlags, value: bool)
pub fn set(&mut self, other: SignalFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for SignalFlags
impl Binary for SignalFlags
sourceimpl BitAnd<SignalFlags> for SignalFlags
impl BitAnd<SignalFlags> for SignalFlags
sourcefn bitand(self, other: SignalFlags) -> SignalFlags
fn bitand(self, other: SignalFlags) -> SignalFlags
Returns the intersection between the two sets of flags.
type Output = SignalFlags
type Output = SignalFlags
& operator.sourceimpl BitAndAssign<SignalFlags> for SignalFlags
impl BitAndAssign<SignalFlags> for SignalFlags
sourcefn bitand_assign(&mut self, other: SignalFlags)
fn bitand_assign(&mut self, other: SignalFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<SignalFlags> for SignalFlags
impl BitOr<SignalFlags> for SignalFlags
sourcefn bitor(self, other: SignalFlags) -> SignalFlags
fn bitor(self, other: SignalFlags) -> SignalFlags
Returns the union of the two sets of flags.
type Output = SignalFlags
type Output = SignalFlags
| operator.sourceimpl BitOrAssign<SignalFlags> for SignalFlags
impl BitOrAssign<SignalFlags> for SignalFlags
sourcefn bitor_assign(&mut self, other: SignalFlags)
fn bitor_assign(&mut self, other: SignalFlags)
Adds the set of flags.
sourceimpl BitXor<SignalFlags> for SignalFlags
impl BitXor<SignalFlags> for SignalFlags
sourcefn bitxor(self, other: SignalFlags) -> SignalFlags
fn bitxor(self, other: SignalFlags) -> SignalFlags
Returns the left flags, but with all the right flags toggled.
type Output = SignalFlags
type Output = SignalFlags
^ operator.sourceimpl BitXorAssign<SignalFlags> for SignalFlags
impl BitXorAssign<SignalFlags> for SignalFlags
sourcefn bitxor_assign(&mut self, other: SignalFlags)
fn bitxor_assign(&mut self, other: SignalFlags)
Toggles the set of flags.
sourceimpl Clone for SignalFlags
impl Clone for SignalFlags
sourcefn clone(&self) -> SignalFlags
fn clone(&self) -> SignalFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for SignalFlags
impl Debug for SignalFlags
sourceimpl Extend<SignalFlags> for SignalFlags
impl Extend<SignalFlags> for SignalFlags
sourcefn extend<T: IntoIterator<Item = SignalFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = SignalFlags>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<SignalFlags> for SignalFlags
impl FromIterator<SignalFlags> for SignalFlags
sourcefn from_iter<T: IntoIterator<Item = SignalFlags>>(iterator: T) -> SignalFlags
fn from_iter<T: IntoIterator<Item = SignalFlags>>(iterator: T) -> SignalFlags
sourceimpl Hash for SignalFlags
impl Hash for SignalFlags
sourceimpl LowerHex for SignalFlags
impl LowerHex for SignalFlags
sourceimpl Not for SignalFlags
impl Not for SignalFlags
sourcefn not(self) -> SignalFlags
fn not(self) -> SignalFlags
Returns the complement of this set of flags.
type Output = SignalFlags
type Output = SignalFlags
! operator.sourceimpl Octal for SignalFlags
impl Octal for SignalFlags
sourceimpl Ord for SignalFlags
impl Ord for SignalFlags
sourcefn cmp(&self, other: &SignalFlags) -> Ordering
fn cmp(&self, other: &SignalFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<SignalFlags> for SignalFlags
impl PartialEq<SignalFlags> for SignalFlags
sourcefn eq(&self, other: &SignalFlags) -> bool
fn eq(&self, other: &SignalFlags) -> bool
sourceimpl PartialOrd<SignalFlags> for SignalFlags
impl PartialOrd<SignalFlags> for SignalFlags
sourcefn partial_cmp(&self, other: &SignalFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &SignalFlags) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl Sub<SignalFlags> for SignalFlags
impl Sub<SignalFlags> for SignalFlags
sourcefn sub(self, other: SignalFlags) -> SignalFlags
fn sub(self, other: SignalFlags) -> SignalFlags
Returns the set difference of the two sets of flags.
type Output = SignalFlags
type Output = SignalFlags
- operator.sourceimpl SubAssign<SignalFlags> for SignalFlags
impl SubAssign<SignalFlags> for SignalFlags
sourcefn sub_assign(&mut self, other: SignalFlags)
fn sub_assign(&mut self, other: SignalFlags)
Disables all flags enabled in the set.