Struct gio::ApplicationFlags
source · [−]pub struct ApplicationFlags { /* private fields */ }Implementations
sourceimpl ApplicationFlags
impl ApplicationFlags
pub const FLAGS_NONE: ApplicationFlags = _
pub const IS_SERVICE: ApplicationFlags = _
pub const IS_LAUNCHER: ApplicationFlags = _
pub const HANDLES_OPEN: ApplicationFlags = _
pub const HANDLES_COMMAND_LINE: ApplicationFlags = _
pub const SEND_ENVIRONMENT: ApplicationFlags = _
pub const NON_UNIQUE: ApplicationFlags = _
pub const CAN_OVERRIDE_APP_ID: ApplicationFlags = _
sourcepub const fn empty() -> ApplicationFlags
pub const fn empty() -> ApplicationFlags
Returns an empty set of flags
sourcepub const fn all() -> ApplicationFlags
pub const fn all() -> ApplicationFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<ApplicationFlags>
pub fn from_bits(bits: u32) -> Option<ApplicationFlags>
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) -> ApplicationFlags
pub const fn from_bits_truncate(bits: u32) -> ApplicationFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> ApplicationFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> ApplicationFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: ApplicationFlags) -> bool
pub const fn intersects(&self, other: ApplicationFlags) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: ApplicationFlags) -> bool
pub const fn contains(&self, other: ApplicationFlags) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: ApplicationFlags)
pub fn insert(&mut self, other: ApplicationFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: ApplicationFlags)
pub fn remove(&mut self, other: ApplicationFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: ApplicationFlags)
pub fn toggle(&mut self, other: ApplicationFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: ApplicationFlags, value: bool)
pub fn set(&mut self, other: ApplicationFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for ApplicationFlags
impl Binary for ApplicationFlags
sourceimpl BitAnd<ApplicationFlags> for ApplicationFlags
impl BitAnd<ApplicationFlags> for ApplicationFlags
sourcefn bitand(self, other: ApplicationFlags) -> ApplicationFlags
fn bitand(self, other: ApplicationFlags) -> ApplicationFlags
Returns the intersection between the two sets of flags.
type Output = ApplicationFlags
type Output = ApplicationFlags
& operator.sourceimpl BitAndAssign<ApplicationFlags> for ApplicationFlags
impl BitAndAssign<ApplicationFlags> for ApplicationFlags
sourcefn bitand_assign(&mut self, other: ApplicationFlags)
fn bitand_assign(&mut self, other: ApplicationFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<ApplicationFlags> for ApplicationFlags
impl BitOr<ApplicationFlags> for ApplicationFlags
sourcefn bitor(self, other: ApplicationFlags) -> ApplicationFlags
fn bitor(self, other: ApplicationFlags) -> ApplicationFlags
Returns the union of the two sets of flags.
type Output = ApplicationFlags
type Output = ApplicationFlags
| operator.sourceimpl BitOrAssign<ApplicationFlags> for ApplicationFlags
impl BitOrAssign<ApplicationFlags> for ApplicationFlags
sourcefn bitor_assign(&mut self, other: ApplicationFlags)
fn bitor_assign(&mut self, other: ApplicationFlags)
Adds the set of flags.
sourceimpl BitXor<ApplicationFlags> for ApplicationFlags
impl BitXor<ApplicationFlags> for ApplicationFlags
sourcefn bitxor(self, other: ApplicationFlags) -> ApplicationFlags
fn bitxor(self, other: ApplicationFlags) -> ApplicationFlags
Returns the left flags, but with all the right flags toggled.
type Output = ApplicationFlags
type Output = ApplicationFlags
^ operator.sourceimpl BitXorAssign<ApplicationFlags> for ApplicationFlags
impl BitXorAssign<ApplicationFlags> for ApplicationFlags
sourcefn bitxor_assign(&mut self, other: ApplicationFlags)
fn bitxor_assign(&mut self, other: ApplicationFlags)
Toggles the set of flags.
sourceimpl Clone for ApplicationFlags
impl Clone for ApplicationFlags
sourcefn clone(&self) -> ApplicationFlags
fn clone(&self) -> ApplicationFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for ApplicationFlags
impl Debug for ApplicationFlags
sourceimpl Default for ApplicationFlags
impl Default for ApplicationFlags
sourcefn default() -> ApplicationFlags
fn default() -> ApplicationFlags
sourceimpl Extend<ApplicationFlags> for ApplicationFlags
impl Extend<ApplicationFlags> for ApplicationFlags
sourcefn extend<T: IntoIterator<Item = ApplicationFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ApplicationFlags>>(&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<ApplicationFlags> for ApplicationFlags
impl FromIterator<ApplicationFlags> for ApplicationFlags
sourcefn from_iter<T: IntoIterator<Item = ApplicationFlags>>(
iterator: T
) -> ApplicationFlags
fn from_iter<T: IntoIterator<Item = ApplicationFlags>>(
iterator: T
) -> ApplicationFlags
sourceimpl<'a> FromValue<'a> for ApplicationFlags
impl<'a> FromValue<'a> for ApplicationFlags
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for ApplicationFlags
impl<'a> FromValueOptional<'a> for ApplicationFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for ApplicationFlags
impl Hash for ApplicationFlags
sourceimpl LowerHex for ApplicationFlags
impl LowerHex for ApplicationFlags
sourceimpl Not for ApplicationFlags
impl Not for ApplicationFlags
sourcefn not(self) -> ApplicationFlags
fn not(self) -> ApplicationFlags
Returns the complement of this set of flags.
type Output = ApplicationFlags
type Output = ApplicationFlags
! operator.sourceimpl Octal for ApplicationFlags
impl Octal for ApplicationFlags
sourceimpl Ord for ApplicationFlags
impl Ord for ApplicationFlags
sourcefn cmp(&self, other: &ApplicationFlags) -> Ordering
fn cmp(&self, other: &ApplicationFlags) -> 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<ApplicationFlags> for ApplicationFlags
impl PartialEq<ApplicationFlags> for ApplicationFlags
sourcefn eq(&self, other: &ApplicationFlags) -> bool
fn eq(&self, other: &ApplicationFlags) -> bool
sourceimpl PartialOrd<ApplicationFlags> for ApplicationFlags
impl PartialOrd<ApplicationFlags> for ApplicationFlags
sourcefn partial_cmp(&self, other: &ApplicationFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &ApplicationFlags) -> 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 StaticType for ApplicationFlags
impl StaticType for ApplicationFlags
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<ApplicationFlags> for ApplicationFlags
impl Sub<ApplicationFlags> for ApplicationFlags
sourcefn sub(self, other: ApplicationFlags) -> ApplicationFlags
fn sub(self, other: ApplicationFlags) -> ApplicationFlags
Returns the set difference of the two sets of flags.
type Output = ApplicationFlags
type Output = ApplicationFlags
- operator.sourceimpl SubAssign<ApplicationFlags> for ApplicationFlags
impl SubAssign<ApplicationFlags> for ApplicationFlags
sourcefn sub_assign(&mut self, other: ApplicationFlags)
fn sub_assign(&mut self, other: ApplicationFlags)
Disables all flags enabled in the set.
sourceimpl UpperHex for ApplicationFlags
impl UpperHex for ApplicationFlags
impl Copy for ApplicationFlags
impl Eq for ApplicationFlags
impl StructuralEq for ApplicationFlags
impl StructuralPartialEq for ApplicationFlags
Auto Trait Implementations
impl RefUnwindSafe for ApplicationFlags
impl Send for ApplicationFlags
impl Sync for ApplicationFlags
impl Unpin for ApplicationFlags
impl UnwindSafe for ApplicationFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.