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 for FourButton
impl PartialEq 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 for FourButton
impl PartialOrd 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 moreimpl Copy for FourButton
impl Eq for FourButton
impl StructuralPartialEq for FourButton
Auto Trait Implementations§
impl RefUnwindSafe for FourButton
impl Send for FourButton
impl Sync for FourButton
impl Unpin for FourButton
impl UnwindSafe for FourButton
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more