pub struct TouchState {
pub touch_events: Vec<TouchEvent>,
pub last_touch: Option<TouchEvent>,
pub last_touch_player: Option<PlayerId>,
pub last_touch_team_is_team_0: Option<bool>,
}Fields§
§touch_events: Vec<TouchEvent>§last_touch: Option<TouchEvent>§last_touch_player: Option<PlayerId>§last_touch_team_is_team_0: Option<bool>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 Default for TouchState
impl Default for TouchState
Source§fn default() -> TouchState
fn default() -> TouchState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TouchState
impl RefUnwindSafe for TouchState
impl Send for TouchState
impl Sync for TouchState
impl Unpin for TouchState
impl UnsafeUnpin 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