Enum input::ButtonState [−][src]
pub enum ButtonState {
Press,
Release,
}Stores button state.
Variants
PressButton was pressed.
ReleaseButton was released.
Trait Implementations
impl Copy for ButtonState[src]
impl Copy for ButtonStateimpl Clone for ButtonState[src]
impl Clone for ButtonStatefn clone(&self) -> ButtonState[src]
fn clone(&self) -> ButtonStateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for ButtonState[src]
impl PartialEq for ButtonStatefn eq(&self, other: &ButtonState) -> bool[src]
fn eq(&self, other: &ButtonState) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for ButtonState[src]
impl Eq for ButtonStateimpl Hash for ButtonState[src]
impl Hash for ButtonStatefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for ButtonState[src]
impl Debug for ButtonStateAuto Trait Implementations
impl Send for ButtonState
impl Send for ButtonStateimpl Sync for ButtonState
impl Sync for ButtonState