Enum sdl2::mouse::MouseButton [−][src]
#[repr(u8)]pub enum MouseButton { Unknown, Left, Middle, Right, X1, X2, }
Variants
Unknown
Left
Middle
Right
X1
X2
Methods
impl MouseButton
[src]
impl MouseButton
pub fn from_ll(button: u8) -> MouseButton
[src]
pub fn from_ll(button: u8) -> MouseButton
Trait Implementations
impl Copy for MouseButton
[src]
impl Copy for MouseButton
impl Clone for MouseButton
[src]
impl Clone for MouseButton
fn clone(&self) -> MouseButton
[src]
fn clone(&self) -> MouseButton
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for MouseButton
[src]
impl Eq for MouseButton
impl PartialEq for MouseButton
[src]
impl PartialEq for MouseButton
fn eq(&self, other: &MouseButton) -> bool
[src]
fn eq(&self, other: &MouseButton) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Hash for MouseButton
[src]
impl Hash for MouseButton
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for MouseButton
[src]
impl Debug for MouseButton
Auto Trait Implementations
impl Send for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Sync for MouseButton