Enum rich_sdl2_rust::haptic::direction::Direction
source · #[non_exhaustive]pub enum Direction {
Polar {
degree_100: i32,
},
Cartesian {
x: i32,
y: i32,
z: i32,
},
Spherical {
z_degree_100: i32,
elevation_degree_100: i32,
},
}
Expand description
A direction and coordinate system of the haptic movements.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Polar
Fields
A polar coordinate system.
Cartesian
Fields
A cartesian coordinate system.
Spherical
Fields
A spherical coordinate system (3-axis haptic device).
Trait Implementations§
source§impl PartialEq for Direction
impl PartialEq for Direction
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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