pub enum TouchStateSpec {
Down,
Up,
Contact,
}Expand description
Per-contact state in a multi-touch frame.
Variants§
Down
New contact this frame.
Up
Contact lifted this frame.
Contact
Contact still held, possibly moved.
Implementations§
Source§impl TouchStateSpec
impl TouchStateSpec
Sourcepub fn to_core(self) -> TouchState
pub fn to_core(self) -> TouchState
Convert to the core TouchState.
Trait Implementations§
Source§impl Clone for TouchStateSpec
impl Clone for TouchStateSpec
Source§fn clone(&self) -> TouchStateSpec
fn clone(&self) -> TouchStateSpec
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 TouchStateSpec
Source§impl Debug for TouchStateSpec
impl Debug for TouchStateSpec
impl Eq for TouchStateSpec
Source§impl PartialEq for TouchStateSpec
impl PartialEq for TouchStateSpec
Source§fn eq(&self, other: &TouchStateSpec) -> bool
fn eq(&self, other: &TouchStateSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TouchStateSpec
Auto Trait Implementations§
impl Freeze for TouchStateSpec
impl RefUnwindSafe for TouchStateSpec
impl Send for TouchStateSpec
impl Sync for TouchStateSpec
impl Unpin for TouchStateSpec
impl UnsafeUnpin for TouchStateSpec
impl UnwindSafe for TouchStateSpec
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