pub enum HatDirection {
Up,
UpRight,
Right,
DownRight,
Down,
DownLeft,
Left,
UpLeft,
Neutral,
}Expand description
Represents the direction of the hat of a Dualsense controller
Variants§
Trait Implementations§
Source§impl Clone for HatDirection
impl Clone for HatDirection
Source§fn clone(&self) -> HatDirection
fn clone(&self) -> HatDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HatDirection
Source§impl Debug for HatDirection
impl Debug for HatDirection
Source§impl Default for HatDirection
impl Default for HatDirection
Source§fn default() -> HatDirection
fn default() -> HatDirection
Returns the “default value” for a type. Read more
impl Eq for HatDirection
Source§impl From<HatDirection> for Hat
impl From<HatDirection> for Hat
Source§fn from(val: HatDirection) -> Self
fn from(val: HatDirection) -> Self
Converts to this type from the input type.
Source§impl Hash for HatDirection
impl Hash for HatDirection
Source§impl PartialEq for HatDirection
impl PartialEq for HatDirection
Source§fn eq(&self, other: &HatDirection) -> bool
fn eq(&self, other: &HatDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HatDirection
Auto Trait Implementations§
impl Freeze for HatDirection
impl RefUnwindSafe for HatDirection
impl Send for HatDirection
impl Sync for HatDirection
impl Unpin for HatDirection
impl UnsafeUnpin for HatDirection
impl UnwindSafe for HatDirection
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