pub struct SpatialItem<K> {
pub key: K,
pub bounds: Aabb,
}Expand description
Key and bounds supplied to an index builder.
Fields§
§key: KCaller-owned identity.
bounds: AabbBroad-phase bounds.
Implementations§
Source§impl<K> SpatialItem<K>
impl<K> SpatialItem<K>
Sourcepub const fn new(key: K, bounds: Aabb) -> SpatialItem<K>
pub const fn new(key: K, bounds: Aabb) -> SpatialItem<K>
Construct one caller-keyed broad-phase item.
Trait Implementations§
Source§impl<K> Clone for SpatialItem<K>where
K: Clone,
impl<K> Clone for SpatialItem<K>where
K: Clone,
Source§fn clone(&self) -> SpatialItem<K>
fn clone(&self) -> SpatialItem<K>
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 moreSource§impl<K> Debug for SpatialItem<K>where
K: Debug,
impl<K> Debug for SpatialItem<K>where
K: Debug,
Source§impl<K> PartialEq for SpatialItem<K>where
K: PartialEq,
impl<K> PartialEq for SpatialItem<K>where
K: PartialEq,
impl<K> StructuralPartialEq for SpatialItem<K>
Auto Trait Implementations§
impl<K> Freeze for SpatialItem<K>where
K: Freeze,
impl<K> RefUnwindSafe for SpatialItem<K>where
K: RefUnwindSafe,
impl<K> Send for SpatialItem<K>where
K: Send,
impl<K> Sync for SpatialItem<K>where
K: Sync,
impl<K> Unpin for SpatialItem<K>where
K: Unpin,
impl<K> UnwindSafe for SpatialItem<K>where
K: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more