#[repr(transparent)]pub struct Modifiers { /* private fields */ }Expand description
Modifier mask
Implementations§
source§impl Modifiers
impl Modifiers
sourcepub const RightShift: Modifiers = _
pub const RightShift: Modifiers = _
Right Shift
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
self intersects one of the other
(self & other) != 0 || other == 0
Trait Implementations§
source§impl BitAndAssign<Modifiers> for Modifiers
impl BitAndAssign<Modifiers> for Modifiers
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moresource§impl BitOrAssign<Modifiers> for Modifiers
impl BitOrAssign<Modifiers> for Modifiers
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moresource§impl BitXorAssign<Modifiers> for Modifiers
impl BitXorAssign<Modifiers> for Modifiers
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moresource§impl Ord for Modifiers
impl Ord for Modifiers
source§impl PartialEq<Modifiers> for Modifiers
impl PartialEq<Modifiers> for Modifiers
source§impl PartialOrd<Modifiers> for Modifiers
impl PartialOrd<Modifiers> for Modifiers
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