pub struct ApplicationFlags { /* private fields */ }
Implementations§
Source§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
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§
Source§impl Binary for ApplicationFlags
impl Binary for ApplicationFlags
Source§impl BitAnd for ApplicationFlags
impl BitAnd for ApplicationFlags
Source§fn bitand(self, other: ApplicationFlags) -> ApplicationFlags
fn bitand(self, other: ApplicationFlags) -> ApplicationFlags
Returns the intersection between the two sets of flags.
Source§type Output = ApplicationFlags
type Output = ApplicationFlags
&
operator.Source§impl BitAndAssign for ApplicationFlags
impl BitAndAssign for ApplicationFlags
Source§fn bitand_assign(&mut self, other: ApplicationFlags)
fn bitand_assign(&mut self, other: ApplicationFlags)
Disables all flags disabled in the set.
Source§impl BitOr for ApplicationFlags
impl BitOr for ApplicationFlags
Source§fn bitor(self, other: ApplicationFlags) -> ApplicationFlags
fn bitor(self, other: ApplicationFlags) -> ApplicationFlags
Returns the union of the two sets of flags.
Source§type Output = ApplicationFlags
type Output = ApplicationFlags
|
operator.Source§impl BitOrAssign for ApplicationFlags
impl BitOrAssign for ApplicationFlags
Source§fn bitor_assign(&mut self, other: ApplicationFlags)
fn bitor_assign(&mut self, other: ApplicationFlags)
Adds the set of flags.
Source§impl BitXor for ApplicationFlags
impl BitXor for ApplicationFlags
Source§fn bitxor(self, other: ApplicationFlags) -> ApplicationFlags
fn bitxor(self, other: ApplicationFlags) -> ApplicationFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = ApplicationFlags
type Output = ApplicationFlags
^
operator.Source§impl BitXorAssign for ApplicationFlags
impl BitXorAssign for ApplicationFlags
Source§fn bitxor_assign(&mut self, other: ApplicationFlags)
fn bitxor_assign(&mut self, other: ApplicationFlags)
Toggles the set of flags.
Source§impl Clone for ApplicationFlags
impl Clone for ApplicationFlags
Source§fn clone(&self) -> ApplicationFlags
fn clone(&self) -> ApplicationFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ApplicationFlags
impl Debug for ApplicationFlags
Source§impl Default for ApplicationFlags
impl Default for ApplicationFlags
Source§fn default() -> ApplicationFlags
fn default() -> ApplicationFlags
Source§impl Extend<ApplicationFlags> for ApplicationFlags
impl Extend<ApplicationFlags> for ApplicationFlags
Source§fn extend<T: IntoIterator<Item = ApplicationFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ApplicationFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<ApplicationFlags> for ApplicationFlags
impl FromIterator<ApplicationFlags> for ApplicationFlags
Source§fn from_iter<T: IntoIterator<Item = ApplicationFlags>>(
iterator: T,
) -> ApplicationFlags
fn from_iter<T: IntoIterator<Item = ApplicationFlags>>( iterator: T, ) -> ApplicationFlags
Source§impl<'a> FromValue<'a> for ApplicationFlags
impl<'a> FromValue<'a> for ApplicationFlags
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for ApplicationFlags
impl<'a> FromValueOptional<'a> for ApplicationFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for ApplicationFlags
impl Hash for ApplicationFlags
Source§impl LowerHex for ApplicationFlags
impl LowerHex for ApplicationFlags
Source§impl Not for ApplicationFlags
impl Not for ApplicationFlags
Source§fn not(self) -> ApplicationFlags
fn not(self) -> ApplicationFlags
Returns the complement of this set of flags.
Source§type Output = ApplicationFlags
type Output = ApplicationFlags
!
operator.Source§impl Octal for ApplicationFlags
impl Octal for ApplicationFlags
Source§impl Ord for ApplicationFlags
impl Ord for ApplicationFlags
Source§fn cmp(&self, other: &ApplicationFlags) -> Ordering
fn cmp(&self, other: &ApplicationFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ApplicationFlags
impl PartialEq for ApplicationFlags
Source§impl PartialOrd for ApplicationFlags
impl PartialOrd for ApplicationFlags
Source§impl StaticType for ApplicationFlags
impl StaticType for ApplicationFlags
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for ApplicationFlags
impl Sub for ApplicationFlags
Source§fn sub(self, other: ApplicationFlags) -> ApplicationFlags
fn sub(self, other: ApplicationFlags) -> ApplicationFlags
Returns the set difference of the two sets of flags.
Source§type Output = ApplicationFlags
type Output = ApplicationFlags
-
operator.Source§impl SubAssign for ApplicationFlags
impl SubAssign for ApplicationFlags
Source§fn sub_assign(&mut self, other: ApplicationFlags)
fn sub_assign(&mut self, other: ApplicationFlags)
Disables all flags enabled in the set.
Source§impl UpperHex for ApplicationFlags
impl UpperHex for ApplicationFlags
impl Copy for ApplicationFlags
impl Eq for ApplicationFlags
impl StructuralPartialEq for ApplicationFlags
Auto Trait Implementations§
impl Freeze for ApplicationFlags
impl RefUnwindSafe for ApplicationFlags
impl Send for ApplicationFlags
impl Sync for ApplicationFlags
impl Unpin for ApplicationFlags
impl UnwindSafe for ApplicationFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.