pub enum ObjectIndex<S, D> {
Static(S),
Dynamic(D),
}Expand description
Represents the index of a static or dynamic inserted object.
Variants§
Static(S)
The index of the static object represented by the collider.
Dynamic(D)
The index of the dynamic object represented by the body.
Trait Implementations§
Source§impl<S: Clone, D: Clone> Clone for ObjectIndex<S, D>
impl<S: Clone, D: Clone> Clone for ObjectIndex<S, D>
Source§fn clone(&self) -> ObjectIndex<S, D>
fn clone(&self) -> ObjectIndex<S, D>
Returns a copy 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 moreimpl<S: Copy, D: Copy> Copy for ObjectIndex<S, D>
Auto Trait Implementations§
impl<S, D> Freeze for ObjectIndex<S, D>
impl<S, D> RefUnwindSafe for ObjectIndex<S, D>where
S: RefUnwindSafe,
D: RefUnwindSafe,
impl<S, D> Send for ObjectIndex<S, D>
impl<S, D> Sync for ObjectIndex<S, D>
impl<S, D> Unpin for ObjectIndex<S, D>
impl<S, D> UnwindSafe for ObjectIndex<S, D>where
S: UnwindSafe,
D: 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