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