#[repr(i32)]pub enum TouchState {
Released = 0,
Pressed = 1,
Held = 2,
}Expand description
The state of a given touch.
Variants§
Released = 0
The touch has been released.
Pressed = 1
The screen has been touched.
Held = 2
The touch is still being held.
Trait Implementations§
Source§impl Clone for TouchState
impl Clone for TouchState
Source§fn clone(&self) -> TouchState
fn clone(&self) -> TouchState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TouchState
impl Debug for TouchState
Source§impl From<TouchState> for last_touch_e_t
impl From<TouchState> for last_touch_e_t
Source§fn from(value: TouchState) -> last_touch_e_t
fn from(value: TouchState) -> last_touch_e_t
Converts to this type from the input type.
Source§impl PartialEq for TouchState
impl PartialEq for TouchState
Source§impl TryFrom<i32> for TouchState
impl TryFrom<i32> for TouchState
Source§type Error = ScreenError
type Error = ScreenError
The type returned in the event of a conversion error.
impl Copy for TouchState
impl Eq for TouchState
impl StructuralPartialEq for TouchState
Auto Trait Implementations§
impl Freeze for TouchState
impl RefUnwindSafe for TouchState
impl Send for TouchState
impl Sync for TouchState
impl Unpin for TouchState
impl UnwindSafe for TouchState
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