Struct kernel::sync::event_bus::InternalBitFlags
source · #[repr(transparent)]pub struct InternalBitFlags {
bits: u32,
}
Fields§
§bits: u32
Implementations§
source§impl InternalBitFlags
impl InternalBitFlags
pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn bits(&self) -> u32
pub fn bits_mut(&mut self) -> &mut u32
pub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits_truncate(bits: u32) -> Self
pub const fn from_bits_retain(bits: u32) -> Self
pub fn from_name(name: &str) -> Option<Self>
pub const fn iter(&self) -> Iter ⓘ
pub const fn iter_names(&self) -> IterRaw ⓘ
pub const fn is_empty(&self) -> bool
pub const fn is_all(&self) -> bool
pub const fn intersects(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
pub fn insert(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
pub fn set(&mut self, other: Self, value: bool)
pub const fn intersection(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
pub const fn complement(self) -> Self
Trait Implementations§
source§impl AsRef<u32> for InternalBitFlags
impl AsRef<u32> for InternalBitFlags
source§impl Binary for InternalBitFlags
impl Binary for InternalBitFlags
source§impl Clone for InternalBitFlags
impl Clone for InternalBitFlags
source§fn clone(&self) -> InternalBitFlags
fn clone(&self) -> InternalBitFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InternalBitFlags
impl Debug for InternalBitFlags
source§impl Default for InternalBitFlags
impl Default for InternalBitFlags
source§impl Display for InternalBitFlags
impl Display for InternalBitFlags
source§impl From<u32> for InternalBitFlags
impl From<u32> for InternalBitFlags
source§impl FromStr for InternalBitFlags
impl FromStr for InternalBitFlags
source§impl Hash for InternalBitFlags
impl Hash for InternalBitFlags
source§impl LowerHex for InternalBitFlags
impl LowerHex for InternalBitFlags
source§impl Octal for InternalBitFlags
impl Octal for InternalBitFlags
source§impl Ord for InternalBitFlags
impl Ord for InternalBitFlags
source§fn cmp(&self, other: &InternalBitFlags) -> Ordering
fn cmp(&self, other: &InternalBitFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<InternalBitFlags> for InternalBitFlags
impl PartialEq<InternalBitFlags> for InternalBitFlags
source§fn eq(&self, other: &InternalBitFlags) -> bool
fn eq(&self, other: &InternalBitFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InternalBitFlags> for InternalBitFlags
impl PartialOrd<InternalBitFlags> for InternalBitFlags
source§fn partial_cmp(&self, other: &InternalBitFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &InternalBitFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more