pub struct SensorCrossing {
pub tag: u64,
pub other: Option<BodyHandle>,
pub entered: bool,
}Expand description
One boundary crossing of a sensor region recorded during a step: something
began or stopped overlapping the sensor tagged tag.
Fields§
§tag: u64The caller’s tag for the crossed sensor.
other: Option<BodyHandle>The crossing body, None when it left the simulation this step.
entered: booltrue on the way in, false on the way out.
Trait Implementations§
Source§impl Clone for SensorCrossing
impl Clone for SensorCrossing
Source§fn clone(&self) -> SensorCrossing
fn clone(&self) -> SensorCrossing
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 SensorCrossing
Auto Trait Implementations§
impl Freeze for SensorCrossing
impl RefUnwindSafe for SensorCrossing
impl Send for SensorCrossing
impl Sync for SensorCrossing
impl Unpin for SensorCrossing
impl UnsafeUnpin for SensorCrossing
impl UnwindSafe for SensorCrossing
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