pub struct PointerButtons(/* private fields */);Expand description
A set of PointerButtons.
Implementations§
Source§impl PointerButtons
impl PointerButtons
Sourcepub fn insert(&mut self, button: PointerButton)
pub fn insert(&mut self, button: PointerButton)
Add the button to the set.
Sourcepub fn remove(&mut self, button: PointerButton)
pub fn remove(&mut self, button: PointerButton)
Remove the button from the set.
Sourcepub fn contains(self, button: PointerButton) -> bool
pub fn contains(self, button: PointerButton) -> bool
Returns true if the button is in the set.
Sourcepub fn contains_all(self, buttons: Self) -> bool
pub fn contains_all(self, buttons: Self) -> bool
Returns true if all the buttons are in the set.
Trait Implementations§
Source§impl Binary for PointerButtons
impl Binary for PointerButtons
Source§impl BitOr<PointerButton> for PointerButtons
impl BitOr<PointerButton> for PointerButtons
Source§type Output = PointerButtons
type Output = PointerButtons
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: PointerButton) -> Self
fn bitor(self, rhs: PointerButton) -> Self
Performs the
| operation. Read moreSource§impl BitOrAssign<PointerButton> for PointerButtons
impl BitOrAssign<PointerButton> for PointerButtons
Source§fn bitor_assign(&mut self, rhs: PointerButton)
fn bitor_assign(&mut self, rhs: PointerButton)
Performs the
|= operation. Read moreSource§impl Clone for PointerButtons
impl Clone for PointerButtons
Source§fn clone(&self) -> PointerButtons
fn clone(&self) -> PointerButtons
Returns a duplicate 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 moreSource§impl Debug for PointerButtons
impl Debug for PointerButtons
Source§impl Default for PointerButtons
impl Default for PointerButtons
Source§fn default() -> PointerButtons
fn default() -> PointerButtons
Returns the “default value” for a type. Read more
Source§impl From<PointerButton> for PointerButtons
impl From<PointerButton> for PointerButtons
Source§fn from(button: PointerButton) -> Self
fn from(button: PointerButton) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PointerButtons
impl PartialEq for PointerButtons
impl Copy for PointerButtons
impl Eq for PointerButtons
impl StructuralPartialEq for PointerButtons
Auto Trait Implementations§
impl Freeze for PointerButtons
impl RefUnwindSafe for PointerButtons
impl Send for PointerButtons
impl Sync for PointerButtons
impl Unpin for PointerButtons
impl UnwindSafe for PointerButtons
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