pub struct MapPart(/* private fields */);
Implementations§
Source§impl MapPart
impl MapPart
pub const KEY_TYPES: Self
pub const KEY_SYMS: Self
pub const MODIFIER_MAP: Self
pub const EXPLICIT_COMPONENTS: Self
pub const KEY_ACTIONS: Self
pub const KEY_BEHAVIORS: Self
pub const VIRTUAL_MODS: Self
pub const VIRTUAL_MOD_MAP: Self
Source§impl MapPart
impl MapPart
Sourcepub fn contains(self, flag: impl Into<u16>) -> bool
pub fn contains(self, flag: impl Into<u16>) -> 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.
Sourcepub fn intersects(self, flag: impl Into<u16>) -> bool
pub fn intersects(self, flag: impl Into<u16>) -> 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.
Trait Implementations§
Source§impl BitAndAssign<MapPart> for u16
impl BitAndAssign<MapPart> for u16
Source§fn bitand_assign(&mut self, other: MapPart)
fn bitand_assign(&mut self, other: MapPart)
Performs the
&=
operation. Read moreSource§impl BitAndAssign<u16> for MapPart
impl BitAndAssign<u16> for MapPart
Source§fn bitand_assign(&mut self, other: u16)
fn bitand_assign(&mut self, other: u16)
Performs the
&=
operation. Read moreSource§impl BitAndAssign for MapPart
impl BitAndAssign for MapPart
Source§fn bitand_assign(&mut self, other: MapPart)
fn bitand_assign(&mut self, other: MapPart)
Performs the
&=
operation. Read moreSource§impl BitOrAssign<MapPart> for u16
impl BitOrAssign<MapPart> for u16
Source§fn bitor_assign(&mut self, other: MapPart)
fn bitor_assign(&mut self, other: MapPart)
Performs the
|=
operation. Read moreSource§impl BitOrAssign<u16> for MapPart
impl BitOrAssign<u16> for MapPart
Source§fn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for MapPart
impl BitOrAssign for MapPart
Source§fn bitor_assign(&mut self, other: MapPart)
fn bitor_assign(&mut self, other: MapPart)
Performs the
|=
operation. Read moreSource§impl<'de> Deserialize<'de> for MapPart
impl<'de> Deserialize<'de> for MapPart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for MapPart
impl Ord for MapPart
Source§impl PartialOrd for MapPart
impl PartialOrd for MapPart
impl Copy for MapPart
impl Eq for MapPart
impl StructuralPartialEq for MapPart
Auto Trait Implementations§
impl Freeze for MapPart
impl RefUnwindSafe for MapPart
impl Send for MapPart
impl Sync for MapPart
impl Unpin for MapPart
impl UnwindSafe for MapPart
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