pub struct WithBounds3D<T: CalcBounds3D + Transformed3D> {
pub bounds: Bounds3D,
pub inner: T,
}Expand description
Holds bounds for a 3D object.
Fields§
§bounds: Bounds3DBounds.
inner: TThe inner object.
Implementations§
Source§impl<T: CalcBounds3D + Transformed3D> WithBounds3D<T>
impl<T: CalcBounds3D + Transformed3D> WithBounds3D<T>
Sourcepub fn update_bounds(&mut self)
pub fn update_bounds(&mut self)
Update the bounds.
Trait Implementations§
Source§impl<T: Clone + CalcBounds3D + Transformed3D> Clone for WithBounds3D<T>
impl<T: Clone + CalcBounds3D + Transformed3D> Clone for WithBounds3D<T>
Source§fn clone(&self) -> WithBounds3D<T>
fn clone(&self) -> WithBounds3D<T>
Returns a duplicate 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<T: Debug + CalcBounds3D + Transformed3D> Debug for WithBounds3D<T>
impl<T: Debug + CalcBounds3D + Transformed3D> Debug for WithBounds3D<T>
Source§impl<T: Default + CalcBounds3D + Transformed3D> Default for WithBounds3D<T>
impl<T: Default + CalcBounds3D + Transformed3D> Default for WithBounds3D<T>
Source§fn default() -> WithBounds3D<T>
fn default() -> WithBounds3D<T>
Returns the “default value” for a type. Read more
Source§impl<T: CalcBounds3D + Transformed3D> Deref for WithBounds3D<T>
impl<T: CalcBounds3D + Transformed3D> Deref for WithBounds3D<T>
Source§impl From<Geometry3D> for WithBounds3D<Geometry3D>
impl From<Geometry3D> for WithBounds3D<Geometry3D>
Source§fn from(geo: Geometry3D) -> Self
fn from(geo: Geometry3D) -> Self
Converts to this type from the input type.
Source§impl<T: CalcBounds3D + Transformed3D> Transformed3D for WithBounds3D<T>
impl<T: CalcBounds3D + Transformed3D> Transformed3D for WithBounds3D<T>
Source§fn transformed_3d(&self, mat: &Mat4) -> Self
fn transformed_3d(&self, mat: &Mat4) -> Self
Transform from matrix.
Auto Trait Implementations§
impl<T> Freeze for WithBounds3D<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithBounds3D<T>where
T: RefUnwindSafe,
impl<T> Send for WithBounds3D<T>where
T: Send,
impl<T> Sync for WithBounds3D<T>where
T: Sync,
impl<T> Unpin for WithBounds3D<T>where
T: Unpin,
impl<T> UnwindSafe for WithBounds3D<T>where
T: 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