pub enum Hat {
Up,
UpRight,
Right,
DownRight,
Down,
DownLeft,
Left,
UpLeft,
Neutral,
}Expand description
Identifies hat direction in a virtual controller
Variants§
Trait Implementations§
impl Copy for Hat
impl Eq for Hat
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.
impl StructuralPartialEq for Hat
Auto Trait Implementations§
impl Freeze for Hat
impl RefUnwindSafe for Hat
impl Send for Hat
impl Sync for Hat
impl Unpin for Hat
impl UnsafeUnpin for Hat
impl UnwindSafe for Hat
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