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