Struct HierarchyMask
pub struct HierarchyMask(/* private fields */);
Implementations§
§impl HierarchyMask
impl HierarchyMask
pub const MASTER_ADDED: HierarchyMask = _
pub const MASTER_REMOVED: HierarchyMask = _
pub const SLAVE_ADDED: HierarchyMask = _
pub const SLAVE_REMOVED: HierarchyMask = _
pub const SLAVE_ATTACHED: HierarchyMask = _
pub const SLAVE_DETACHED: HierarchyMask = _
pub const DEVICE_ENABLED: HierarchyMask = _
pub const DEVICE_DISABLED: HierarchyMask = _
§impl HierarchyMask
impl HierarchyMask
pub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn intersects(self, flag: impl Into<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn remove(self, flags: impl Into<u32>) -> HierarchyMask
pub fn remove(self, flags: impl Into<u32>) -> HierarchyMask
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u32> for HierarchyMask
impl BitAnd<u32> for HierarchyMask
§impl BitAnd for HierarchyMask
impl BitAnd for HierarchyMask
§type Output = HierarchyMask
type Output = HierarchyMask
The resulting type after applying the
&
operator.§fn bitand(self, other: HierarchyMask) -> <HierarchyMask as BitAnd>::Output
fn bitand(self, other: HierarchyMask) -> <HierarchyMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for HierarchyMask
impl BitAndAssign<u32> for HierarchyMask
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for HierarchyMask
impl BitAndAssign for HierarchyMask
§fn bitand_assign(&mut self, other: HierarchyMask)
fn bitand_assign(&mut self, other: HierarchyMask)
Performs the
&=
operation. Read more§impl BitOr<u32> for HierarchyMask
impl BitOr<u32> for HierarchyMask
§impl BitOr for HierarchyMask
impl BitOr for HierarchyMask
§type Output = HierarchyMask
type Output = HierarchyMask
The resulting type after applying the
|
operator.§fn bitor(self, other: HierarchyMask) -> <HierarchyMask as BitOr>::Output
fn bitor(self, other: HierarchyMask) -> <HierarchyMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for HierarchyMask
impl BitOrAssign<u32> for HierarchyMask
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for HierarchyMask
impl BitOrAssign for HierarchyMask
§fn bitor_assign(&mut self, other: HierarchyMask)
fn bitor_assign(&mut self, other: HierarchyMask)
Performs the
|=
operation. Read more§impl Clone for HierarchyMask
impl Clone for HierarchyMask
§fn clone(&self) -> HierarchyMask
fn clone(&self) -> HierarchyMask
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 more§impl Debug for HierarchyMask
impl Debug for HierarchyMask
§impl Default for HierarchyMask
impl Default for HierarchyMask
§fn default() -> HierarchyMask
fn default() -> HierarchyMask
Returns the “default value” for a type. Read more
§impl From<u16> for HierarchyMask
impl From<u16> for HierarchyMask
§fn from(value: u16) -> HierarchyMask
fn from(value: u16) -> HierarchyMask
Converts to this type from the input type.
§impl From<u32> for HierarchyMask
impl From<u32> for HierarchyMask
§fn from(value: u32) -> HierarchyMask
fn from(value: u32) -> HierarchyMask
Converts to this type from the input type.
§impl From<u8> for HierarchyMask
impl From<u8> for HierarchyMask
§fn from(value: u8) -> HierarchyMask
fn from(value: u8) -> HierarchyMask
Converts to this type from the input type.
§impl Hash for HierarchyMask
impl Hash for HierarchyMask
§impl Ord for HierarchyMask
impl Ord for HierarchyMask
§impl PartialEq for HierarchyMask
impl PartialEq for HierarchyMask
§impl PartialOrd for HierarchyMask
impl PartialOrd for HierarchyMask
impl Copy for HierarchyMask
impl Eq for HierarchyMask
impl StructuralPartialEq for HierarchyMask
Auto Trait Implementations§
impl Freeze for HierarchyMask
impl RefUnwindSafe for HierarchyMask
impl Send for HierarchyMask
impl Sync for HierarchyMask
impl Unpin for HierarchyMask
impl UnwindSafe for HierarchyMask
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)