[][src]Enum input::HatState

pub enum HatState {
    Centered,
    Up,
    Right,
    Down,
    Left,
    RightUp,
    RightDown,
    LeftUp,
    LeftDown,
}

Stores controller hat state.

Variants

Centered

Centered (no direction).

Up

Up direction.

Right

Right direction.

Down

Down direction.

Left

Left direction.

RightUp

Right-up direction.

RightDown

Right-down direction.

LeftUp

Left-up direction.

LeftDown

Left-down direction.

Trait Implementations

impl Clone for HatState[src]

impl Copy for HatState[src]

impl Debug for HatState[src]

impl<'de> Deserialize<'de> for HatState[src]

impl Eq for HatState[src]

impl Hash for HatState[src]

impl Ord for HatState[src]

impl PartialEq<HatState> for HatState[src]

impl PartialOrd<HatState> for HatState[src]

impl Serialize for HatState[src]

impl StructuralEq for HatState[src]

impl StructuralPartialEq for HatState[src]

Auto Trait Implementations

impl RefUnwindSafe for HatState

impl Send for HatState

impl Sync for HatState

impl Unpin for HatState

impl UnwindSafe for HatState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.