[−]Struct gio::ApplicationFlags
Methods
impl 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
pub fn empty() -> ApplicationFlags
pub fn empty() -> ApplicationFlags
Returns an empty set of flags.
pub fn all() -> ApplicationFlags
pub fn all() -> ApplicationFlags
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub 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.
pub fn from_bits_truncate(bits: u32) -> ApplicationFlags
pub fn from_bits_truncate(bits: u32) -> ApplicationFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: ApplicationFlags) -> bool
pub fn intersects(&self, other: ApplicationFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: ApplicationFlags) -> bool
pub fn contains(&self, other: ApplicationFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: ApplicationFlags)
pub fn insert(&mut self, other: ApplicationFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: ApplicationFlags)
pub fn remove(&mut self, other: ApplicationFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: ApplicationFlags)
pub fn toggle(&mut self, other: ApplicationFlags)
Toggles the specified flags in-place.
pub 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
impl PartialOrd<ApplicationFlags> for ApplicationFlags
impl PartialOrd<ApplicationFlags> for ApplicationFlags
fn partial_cmp(&self, other: &ApplicationFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &ApplicationFlags) -> Option<Ordering>
fn lt(&self, other: &ApplicationFlags) -> bool
fn lt(&self, other: &ApplicationFlags) -> bool
fn le(&self, other: &ApplicationFlags) -> bool
fn le(&self, other: &ApplicationFlags) -> bool
fn gt(&self, other: &ApplicationFlags) -> bool
fn gt(&self, other: &ApplicationFlags) -> bool
fn ge(&self, other: &ApplicationFlags) -> bool
fn ge(&self, other: &ApplicationFlags) -> bool
impl Ord for ApplicationFlags
impl Ord for ApplicationFlags
fn cmp(&self, other: &ApplicationFlags) -> Ordering
fn cmp(&self, other: &ApplicationFlags) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq<ApplicationFlags> for ApplicationFlags
impl PartialEq<ApplicationFlags> for ApplicationFlags
fn eq(&self, other: &ApplicationFlags) -> bool
fn eq(&self, other: &ApplicationFlags) -> bool
fn ne(&self, other: &ApplicationFlags) -> bool
fn ne(&self, other: &ApplicationFlags) -> bool
impl Clone for ApplicationFlags
impl Clone for ApplicationFlags
fn clone(&self) -> ApplicationFlags
fn clone(&self) -> ApplicationFlags
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Extend<ApplicationFlags> for ApplicationFlags
impl Extend<ApplicationFlags> for ApplicationFlags
fn extend<T: IntoIterator<Item = ApplicationFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ApplicationFlags>>(&mut self, iterator: T)
impl Copy for ApplicationFlags
impl Copy for ApplicationFlags
impl Eq for ApplicationFlags
impl Eq for ApplicationFlags
impl Debug for ApplicationFlags
impl Debug for ApplicationFlags
impl Sub<ApplicationFlags> for ApplicationFlags
impl Sub<ApplicationFlags> for ApplicationFlags
type Output = ApplicationFlags
The resulting type after applying the -
operator.
fn sub(self, other: ApplicationFlags) -> ApplicationFlags
fn sub(self, other: ApplicationFlags) -> ApplicationFlags
Returns the set difference of the two sets of flags.
impl SubAssign<ApplicationFlags> for ApplicationFlags
impl SubAssign<ApplicationFlags> for ApplicationFlags
fn sub_assign(&mut self, other: ApplicationFlags)
fn sub_assign(&mut self, other: ApplicationFlags)
Disables all flags enabled in the set.
impl Not for ApplicationFlags
impl Not for ApplicationFlags
type Output = ApplicationFlags
The resulting type after applying the !
operator.
fn not(self) -> ApplicationFlags
fn not(self) -> ApplicationFlags
Returns the complement of this set of flags.
impl BitAnd<ApplicationFlags> for ApplicationFlags
impl BitAnd<ApplicationFlags> for ApplicationFlags
type Output = ApplicationFlags
The resulting type after applying the &
operator.
fn bitand(self, other: ApplicationFlags) -> ApplicationFlags
fn bitand(self, other: ApplicationFlags) -> ApplicationFlags
Returns the intersection between the two sets of flags.
impl BitOr<ApplicationFlags> for ApplicationFlags
impl BitOr<ApplicationFlags> for ApplicationFlags
type Output = ApplicationFlags
The resulting type after applying the |
operator.
fn bitor(self, other: ApplicationFlags) -> ApplicationFlags
fn bitor(self, other: ApplicationFlags) -> ApplicationFlags
Returns the union of the two sets of flags.
impl BitXor<ApplicationFlags> for ApplicationFlags
impl BitXor<ApplicationFlags> for ApplicationFlags
type Output = ApplicationFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: ApplicationFlags) -> ApplicationFlags
fn bitxor(self, other: ApplicationFlags) -> ApplicationFlags
Returns the left flags, but with all the right flags toggled.
impl BitAndAssign<ApplicationFlags> for ApplicationFlags
impl BitAndAssign<ApplicationFlags> for ApplicationFlags
fn bitand_assign(&mut self, other: ApplicationFlags)
fn bitand_assign(&mut self, other: ApplicationFlags)
Disables all flags disabled in the set.
impl BitOrAssign<ApplicationFlags> for ApplicationFlags
impl BitOrAssign<ApplicationFlags> for ApplicationFlags
fn bitor_assign(&mut self, other: ApplicationFlags)
fn bitor_assign(&mut self, other: ApplicationFlags)
Adds the set of flags.
impl BitXorAssign<ApplicationFlags> for ApplicationFlags
impl BitXorAssign<ApplicationFlags> for ApplicationFlags
fn bitxor_assign(&mut self, other: ApplicationFlags)
fn bitxor_assign(&mut self, other: ApplicationFlags)
Toggles the set of flags.
impl Hash for ApplicationFlags
impl Hash for ApplicationFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromIterator<ApplicationFlags> for ApplicationFlags
impl FromIterator<ApplicationFlags> for ApplicationFlags
fn from_iter<T: IntoIterator<Item = ApplicationFlags>>(
iterator: T
) -> ApplicationFlags
fn from_iter<T: IntoIterator<Item = ApplicationFlags>>(
iterator: T
) -> ApplicationFlags
impl Octal for ApplicationFlags
impl Octal for ApplicationFlags
impl Binary for ApplicationFlags
impl Binary for ApplicationFlags
impl LowerHex for ApplicationFlags
impl LowerHex for ApplicationFlags
impl UpperHex for ApplicationFlags
impl UpperHex for ApplicationFlags
impl StaticType for ApplicationFlags
[src]
impl StaticType for ApplicationFlags
fn static_type() -> Type
[src]
fn static_type() -> Type
impl<'a> FromValue<'a> for ApplicationFlags
[src]
impl<'a> FromValue<'a> for ApplicationFlags
unsafe fn from_value(value: &Value) -> Self
[src]
unsafe fn from_value(value: &Value) -> Self
impl<'a> FromValueOptional<'a> for ApplicationFlags
[src]
impl<'a> FromValueOptional<'a> for ApplicationFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>
impl SetValue for ApplicationFlags
[src]
impl SetValue for ApplicationFlags
Auto Trait Implementations
impl Send for ApplicationFlags
impl Send for ApplicationFlags
impl Sync for ApplicationFlags
impl Sync for ApplicationFlags
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
fn to_send_value(&self) -> SendValue