pub struct Gesture {
pub gesture_type: String,
pub confidence: f32,
pub acceleration: Option<[f32; 3]>,
pub gyroscope: Option<[f32; 3]>,
}Expand description
Generic gesture representation agnostic to the underlying hardware source.
Fields§
§gesture_type: String§confidence: f32§acceleration: Option<[f32; 3]>§gyroscope: Option<[f32; 3]>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gesture
impl<'de> Deserialize<'de> for Gesture
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Gesture
impl RefUnwindSafe for Gesture
impl Send for Gesture
impl Sync for Gesture
impl Unpin for Gesture
impl UnwindSafe for Gesture
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