pub struct CollisionPair {
pub left_index: usize,
pub right_index: usize,
}Expand description
Data type for a broad-phase collision pair.
Fields§
§left_index: usizeIndex of the first item.
right_index: usizeIndex of the second item.
Implementations§
Trait Implementations§
Source§impl Clone for CollisionPair
impl Clone for CollisionPair
Source§fn clone(&self) -> CollisionPair
fn clone(&self) -> CollisionPair
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 CollisionPair
Source§impl Debug for CollisionPair
impl Debug for CollisionPair
impl Eq for CollisionPair
Source§impl Ord for CollisionPair
impl Ord for CollisionPair
Source§fn cmp(&self, other: &CollisionPair) -> Ordering
fn cmp(&self, other: &CollisionPair) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CollisionPair
impl PartialEq for CollisionPair
Source§fn eq(&self, other: &CollisionPair) -> bool
fn eq(&self, other: &CollisionPair) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CollisionPair
impl PartialOrd for CollisionPair
impl StructuralPartialEq for CollisionPair
Auto Trait Implementations§
impl Freeze for CollisionPair
impl RefUnwindSafe for CollisionPair
impl Send for CollisionPair
impl Sync for CollisionPair
impl Unpin for CollisionPair
impl UnsafeUnpin for CollisionPair
impl UnwindSafe for CollisionPair
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