pub struct ScratchPointerSample {
pub pointer_id: u64,
pub source_time_ns: u64,
pub angle_rad: f64,
pub contact_radius_m: f64,
pub normalized_pressure: Option<f64>,
}Expand description
Describes one pointer sample in the host’s monotonic time domain.
Fields§
§pointer_id: u64§source_time_ns: u64§angle_rad: f64§contact_radius_m: f64§normalized_pressure: Option<f64>Trait Implementations§
Source§impl Clone for ScratchPointerSample
impl Clone for ScratchPointerSample
Source§fn clone(&self) -> ScratchPointerSample
fn clone(&self) -> ScratchPointerSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScratchPointerSample
Source§impl Debug for ScratchPointerSample
impl Debug for ScratchPointerSample
Source§impl<'de> Deserialize<'de> for ScratchPointerSample
impl<'de> Deserialize<'de> for ScratchPointerSample
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
Source§impl PartialEq for ScratchPointerSample
impl PartialEq for ScratchPointerSample
Source§impl Serialize for ScratchPointerSample
impl Serialize for ScratchPointerSample
impl StructuralPartialEq for ScratchPointerSample
Auto Trait Implementations§
impl Freeze for ScratchPointerSample
impl RefUnwindSafe for ScratchPointerSample
impl Send for ScratchPointerSample
impl Sync for ScratchPointerSample
impl Unpin for ScratchPointerSample
impl UnsafeUnpin for ScratchPointerSample
impl UnwindSafe for ScratchPointerSample
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