Enum input::mouse::MouseButton [−][src]
pub enum MouseButton {
Unknown,
Left,
Right,
Middle,
X1,
X2,
Button6,
Button7,
Button8,
}
Expand description
Represent a mouse button.
Variants
Unknown mouse button.
Left mouse button.
Right mouse button.
Middle mouse button.
Extra mouse button number 1.
Extra mouse button number 2.
Mouse button number 6.
Mouse button number 7.
Mouse button number 8.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Mutably borrows from an owned value. Read more