Enum sdl2::mouse::MouseButton
source · #[repr(u8)]
pub enum MouseButton {
Unknown,
Left,
Middle,
Right,
X1,
X2,
}
Variants
Unknown
Left
Middle
Right
X1
X2
Implementations
sourceimpl MouseButton
impl MouseButton
pub fn from_ll(button: u8) -> MouseButton
Trait Implementations
sourceimpl Clone for MouseButton
impl Clone for MouseButton
sourcefn clone(&self) -> MouseButton
fn clone(&self) -> MouseButton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MouseButton
impl Debug for MouseButton
sourceimpl Hash for MouseButton
impl Hash for MouseButton
sourceimpl PartialEq<MouseButton> for MouseButton
impl PartialEq<MouseButton> for MouseButton
sourcefn eq(&self, other: &MouseButton) -> bool
fn eq(&self, other: &MouseButton) -> bool
impl Copy for MouseButton
impl Eq for MouseButton
impl StructuralEq for MouseButton
impl StructuralPartialEq for MouseButton
Auto Trait Implementations
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
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