pub struct PointerKey {
pub at_ms: u64,
pub x: f32,
pub y: f32,
}Expand description
Where the pointer was at a moment.
Fields§
§at_ms: u64When, in milliseconds.
x: f32Where across, in logical pixels.
y: f32Where down, in logical pixels.
Trait Implementations§
Source§impl Clone for PointerKey
impl Clone for PointerKey
Source§fn clone(&self) -> PointerKey
fn clone(&self) -> PointerKey
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 PointerKey
Source§impl Debug for PointerKey
impl Debug for PointerKey
Source§impl<'de> Deserialize<'de> for PointerKey
impl<'de> Deserialize<'de> for PointerKey
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 PointerKey
impl PartialEq for PointerKey
Source§impl Serialize for PointerKey
impl Serialize for PointerKey
impl StructuralPartialEq for PointerKey
Auto Trait Implementations§
impl Freeze for PointerKey
impl RefUnwindSafe for PointerKey
impl Send for PointerKey
impl Sync for PointerKey
impl Unpin for PointerKey
impl UnsafeUnpin for PointerKey
impl UnwindSafe for PointerKey
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