Enum input::Button
[−]
[src]
pub enum Button { Keyboard(Key), Mouse(MouseButton), }
Models different kinds of buttons.
Variants
Keyboard(Key)
A keyboard button.
Mouse(MouseButton)
A mouse button.
Trait Implementations
impl Debug for Button
[src]
impl Hash for Button
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for Button
[src]
impl PartialEq for Button
[src]
fn eq(&self, __arg_0: &Button) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Button) -> bool
This method tests for !=
.
impl Encodable for Button
[src]
impl Decodable for Button
[src]
impl Clone for Button
[src]
fn clone(&self) -> Button
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more