pub enum SpatialRegion {
Sphere {
center: Vec3,
radius: f32,
},
Aabb {
min: Vec3,
max: Vec3,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SpatialRegion
impl Clone for SpatialRegion
Source§fn clone(&self) -> SpatialRegion
fn clone(&self) -> SpatialRegion
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 moreSource§impl Debug for SpatialRegion
impl Debug for SpatialRegion
Source§impl PartialEq for SpatialRegion
impl PartialEq for SpatialRegion
Source§fn eq(&self, other: &SpatialRegion) -> bool
fn eq(&self, other: &SpatialRegion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SpatialRegion
impl StructuralPartialEq for SpatialRegion
Auto Trait Implementations§
impl Freeze for SpatialRegion
impl RefUnwindSafe for SpatialRegion
impl Send for SpatialRegion
impl Sync for SpatialRegion
impl Unpin for SpatialRegion
impl UnsafeUnpin for SpatialRegion
impl UnwindSafe for SpatialRegion
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