Struct IMModsWhich
pub struct IMModsWhich(/* private fields */);
Implementations§
§impl IMModsWhich
impl IMModsWhich
pub const USE_COMPAT: IMModsWhich = _
pub const USE_EFFECTIVE: IMModsWhich = _
pub const USE_LOCKED: IMModsWhich = _
pub const USE_LATCHED: IMModsWhich = _
pub const USE_BASE: IMModsWhich = _
§impl IMModsWhich
impl IMModsWhich
pub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> 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<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> 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<u8>) -> IMModsWhich
pub fn remove(self, flags: impl Into<u8>) -> IMModsWhich
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<u8> for IMModsWhich
impl BitAnd<u8> for IMModsWhich
§impl BitAnd for IMModsWhich
impl BitAnd for IMModsWhich
§type Output = IMModsWhich
type Output = IMModsWhich
The resulting type after applying the
&
operator.§fn bitand(self, other: IMModsWhich) -> <IMModsWhich as BitAnd>::Output
fn bitand(self, other: IMModsWhich) -> <IMModsWhich as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u8> for IMModsWhich
impl BitAndAssign<u8> for IMModsWhich
§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read more§impl BitAndAssign for IMModsWhich
impl BitAndAssign for IMModsWhich
§fn bitand_assign(&mut self, other: IMModsWhich)
fn bitand_assign(&mut self, other: IMModsWhich)
Performs the
&=
operation. Read more§impl BitOr<u8> for IMModsWhich
impl BitOr<u8> for IMModsWhich
§impl BitOr for IMModsWhich
impl BitOr for IMModsWhich
§type Output = IMModsWhich
type Output = IMModsWhich
The resulting type after applying the
|
operator.§fn bitor(self, other: IMModsWhich) -> <IMModsWhich as BitOr>::Output
fn bitor(self, other: IMModsWhich) -> <IMModsWhich as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u8> for IMModsWhich
impl BitOrAssign<u8> for IMModsWhich
§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read more§impl BitOrAssign for IMModsWhich
impl BitOrAssign for IMModsWhich
§fn bitor_assign(&mut self, other: IMModsWhich)
fn bitor_assign(&mut self, other: IMModsWhich)
Performs the
|=
operation. Read more§impl Clone for IMModsWhich
impl Clone for IMModsWhich
§fn clone(&self) -> IMModsWhich
fn clone(&self) -> IMModsWhich
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 IMModsWhich
impl Debug for IMModsWhich
§impl Default for IMModsWhich
impl Default for IMModsWhich
§fn default() -> IMModsWhich
fn default() -> IMModsWhich
Returns the “default value” for a type. Read more
§impl From<u8> for IMModsWhich
impl From<u8> for IMModsWhich
§fn from(value: u8) -> IMModsWhich
fn from(value: u8) -> IMModsWhich
Converts to this type from the input type.
§impl Hash for IMModsWhich
impl Hash for IMModsWhich
§impl Ord for IMModsWhich
impl Ord for IMModsWhich
§impl PartialEq for IMModsWhich
impl PartialEq for IMModsWhich
§impl PartialOrd for IMModsWhich
impl PartialOrd for IMModsWhich
impl Copy for IMModsWhich
impl Eq for IMModsWhich
impl StructuralPartialEq for IMModsWhich
Auto Trait Implementations§
impl Freeze for IMModsWhich
impl RefUnwindSafe for IMModsWhich
impl Send for IMModsWhich
impl Sync for IMModsWhich
impl Unpin for IMModsWhich
impl UnwindSafe for IMModsWhich
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
)