Struct Gesture
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§
§impl<'de> Deserialize<'de> for Gesture
impl<'de> Deserialize<'de> for Gesture
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Gesture, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Gesture, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Gesture
impl Serialize for Gesture
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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