pub struct ContactBeginTouch<'a>(/* private fields */);Expand description
Borrowed view of a contact begin-touch event.
This view borrows Box3D’s transient event buffer and is only valid inside
the with_contact_events_view closure that produced it.
Implementations§
Source§impl ContactBeginTouch<'_>
impl ContactBeginTouch<'_>
Sourcepub fn contact_id(&self) -> ContactId
pub fn contact_id(&self) -> ContactId
Returns the transient contact identifier for the pair.
Validate the id before later use; Box3D may destroy contacts when the world is stepped or modified.
Trait Implementations§
Source§impl<'a> Clone for ContactBeginTouch<'a>
impl<'a> Clone for ContactBeginTouch<'a>
Source§fn clone(&self) -> ContactBeginTouch<'a>
fn clone(&self) -> ContactBeginTouch<'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 ContactBeginTouch<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContactBeginTouch<'a>
impl<'a> RefUnwindSafe for ContactBeginTouch<'a>
impl<'a> Send for ContactBeginTouch<'a>
impl<'a> Sync for ContactBeginTouch<'a>
impl<'a> Unpin for ContactBeginTouch<'a>
impl<'a> UnsafeUnpin for ContactBeginTouch<'a>
impl<'a> UnwindSafe for ContactBeginTouch<'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