Enum rich_sdl2_rust::event::game_controller::button::FourButton
source · pub enum FourButton {
Up,
Right,
Down,
Left,
}
Expand description
An one of four buttons which be placed like the diamond.
Variants§
Up
A button on the up.
Right
A button on the right.
Down
A button on the down.
Left
A button on the left.
Trait Implementations§
source§impl Clone for FourButton
impl Clone for FourButton
source§fn clone(&self) -> FourButton
fn clone(&self) -> FourButton
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FourButton
impl Debug for FourButton
source§impl Hash for FourButton
impl Hash for FourButton
source§impl PartialEq<FourButton> for FourButton
impl PartialEq<FourButton> for FourButton
source§fn eq(&self, other: &FourButton) -> bool
fn eq(&self, other: &FourButton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FourButton> for FourButton
impl PartialOrd<FourButton> for FourButton
source§fn partial_cmp(&self, other: &FourButton) -> Option<Ordering>
fn partial_cmp(&self, other: &FourButton) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more