Enum kas::event::MouseButton [−]
pub enum MouseButton {
Left,
Right,
Middle,
Other(u16),
}
Expand description
Describes a button of a mouse controller.
Variants
Other(u16)
Tuple Fields of Other
0: u16
Trait Implementations
impl Clone for MouseButton
impl Clone for MouseButton
pub fn clone(&self) -> MouseButton
pub fn clone(&self) -> MouseButton
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for MouseButton
impl Debug for MouseButton
impl<'de> Deserialize<'de> for MouseButton
impl<'de> Deserialize<'de> for MouseButton
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MouseButton, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MouseButton, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Hash for MouseButton
impl Hash for MouseButton
impl PartialEq<MouseButton> for MouseButton
impl PartialEq<MouseButton> for MouseButton
pub fn eq(&self, other: &MouseButton) -> bool
pub fn eq(&self, other: &MouseButton) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &MouseButton) -> bool
pub fn ne(&self, other: &MouseButton) -> bool
This method tests for !=
.
impl Serialize for MouseButton
impl Serialize for MouseButton
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more
Compare self to key
and return true
if they are equal.