Struct async_std_hidg::Modifiers
source · [−]pub struct Modifiers { /* private fields */ }
Expand description
Modifier mask
Implementations
sourceimpl Modifiers
impl Modifiers
sourcepub const RightShift: Modifiers = Self{ bits: 32,}
pub const RightShift: Modifiers = Self{ bits: 32,}
Right Shift
sourcepub const fn intersects(&self, other: Modifiers) -> bool
pub const fn intersects(&self, other: Modifiers) -> bool
self intersects one of the other
(self & other) != 0 || other == 0
Trait Implementations
sourceimpl BitAndAssign<Modifiers> for Modifiers
impl BitAndAssign<Modifiers> for Modifiers
sourcefn bitand_assign(&mut self, rhs: Modifiers)
fn bitand_assign(&mut self, rhs: Modifiers)
Performs the
&=
operation. Read moresourceimpl BitOrAssign<Modifiers> for Modifiers
impl BitOrAssign<Modifiers> for Modifiers
sourcefn bitor_assign(&mut self, rhs: Modifiers)
fn bitor_assign(&mut self, rhs: Modifiers)
Performs the
|=
operation. Read moresourceimpl BitXorAssign<Modifiers> for Modifiers
impl BitXorAssign<Modifiers> for Modifiers
sourcefn bitxor_assign(&mut self, rhs: Modifiers)
fn bitxor_assign(&mut self, rhs: Modifiers)
Performs the
^=
operation. Read moresourceimpl Ord for Modifiers
impl Ord for Modifiers
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Modifiers> for Modifiers
impl PartialOrd<Modifiers> for Modifiers
sourcefn partial_cmp(&self, other: &Modifiers) -> Option<Ordering>
fn partial_cmp(&self, other: &Modifiers) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for Modifiers
impl Eq for Modifiers
impl StructuralEq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more