pub struct Occupancy<S = ColliderHandle, A = RigidBodyHandle> {
pub sensor: S,
pub actor: A,
}Expand description
Caller-resolved, stable logical identity. Defaults use generational physics handles. See the module recipe; custom keys should include their own lifetime generation if IDs can be reused before old stops arrive.
Fields§
§sensor: S§actor: ATrait Implementations§
impl<S, A> Copy for Occupancy<S, A>
impl<S, A> Eq for Occupancy<S, A>
impl<S, A> StructuralPartialEq for Occupancy<S, A>
Auto Trait Implementations§
impl<S, A> Freeze for Occupancy<S, A>
impl<S, A> RefUnwindSafe for Occupancy<S, A>where
S: RefUnwindSafe,
A: RefUnwindSafe,
impl<S, A> Send for Occupancy<S, A>
impl<S, A> Sync for Occupancy<S, A>
impl<S, A> Unpin for Occupancy<S, A>
impl<S, A> UnwindSafe for Occupancy<S, A>where
S: UnwindSafe,
A: UnwindSafe,
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