Enum nannou::ui::input::Button
[−]
pub enum Button { Keyboard(Key), Mouse(MouseButton), Controller(ControllerButton), }
Models different kinds of buttons.
Variants
Keyboard(Key)
A keyboard button.
Mouse(MouseButton)
A mouse button.
Controller(ControllerButton)
A controller button.
Trait Implementations
impl Copy for Button
impl PartialEq<Button> for Button
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<'de> Deserialize<'de> for Button
fn deserialize<__D>(
__deserializer: __D
) -> Result<Button, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<Button, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Clone for Button
fn clone(&self) -> Button
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Serialize for Button
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
&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 Eq for Button
impl Hash for Button
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
__H: Hasher,
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<MouseButton> for Button
fn from(btn: MouseButton) -> Button
Performs the conversion.
impl From<ControllerButton> for Button
fn from(btn: ControllerButton) -> Button
Performs the conversion.