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