pub struct SensorEvents<'a> {
pub begin_events: &'a [SensorBeginTouchEvent],
pub end_events: &'a [SensorEndTouchEvent],
}Expand description
Sensor events buffered in the world for the current time step.
Borrowed from world storage; invalidated by the next World::step.
(b3SensorEvents)
Fields§
§begin_events: &'a [SensorBeginTouchEvent]Array of sensor begin touch events
end_events: &'a [SensorEndTouchEvent]Array of sensor end touch events (previous double-buffer slot)
Trait Implementations§
Source§impl<'a> Clone for SensorEvents<'a>
impl<'a> Clone for SensorEvents<'a>
Source§fn clone(&self) -> SensorEvents<'a>
fn clone(&self) -> SensorEvents<'a>
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<'a> Copy for SensorEvents<'a>
Auto Trait Implementations§
impl<'a> Freeze for SensorEvents<'a>
impl<'a> RefUnwindSafe for SensorEvents<'a>
impl<'a> Send for SensorEvents<'a>
impl<'a> Sync for SensorEvents<'a>
impl<'a> Unpin for SensorEvents<'a>
impl<'a> UnsafeUnpin for SensorEvents<'a>
impl<'a> UnwindSafe for SensorEvents<'a>
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