pub struct Hat { /* private fields */ }
Expand description
Current state of an enabled device hat switch.
A vJoy hat switch is either a 4-way discrete switch or a continuous switch. Continuous switches feature a range of 360° with a 1/100° resolution.
Implementations§
Trait Implementations§
source§impl Ord for Hat
impl Ord for Hat
source§impl PartialOrd<Hat> for Hat
impl PartialOrd<Hat> for Hat
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 Hat
impl Eq for Hat
impl StructuralEq for Hat
impl StructuralPartialEq for Hat
Auto Trait Implementations§
impl RefUnwindSafe for Hat
impl Send for Hat
impl Sync for Hat
impl Unpin 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