pub struct Bounds2D(/* private fields */);
Expand description
2D bounds, essentially an optional bounding rect.
Implementations§
Trait Implementations§
Source§impl AffineOps<f64> for Bounds2D
impl AffineOps<f64> for Bounds2D
Source§fn affine_transform(&self, transform: &AffineTransform<Scalar>) -> Self
fn affine_transform(&self, transform: &AffineTransform<Scalar>) -> Self
Apply
transform
immutably, outputting a new geometry.Source§fn affine_transform_mut(&mut self, transform: &AffineTransform<Scalar>)
fn affine_transform_mut(&mut self, transform: &AffineTransform<Scalar>)
Apply
transform
to mutate self
.Source§impl Transformed2D for Bounds2D
impl Transformed2D for Bounds2D
Source§fn transformed_2d(&self, _: &RenderResolution, mat: &Mat3) -> Self
fn transformed_2d(&self, _: &RenderResolution, mat: &Mat3) -> Self
Transform from matrix.
Auto Trait Implementations§
impl Freeze for Bounds2D
impl RefUnwindSafe for Bounds2D
impl Send for Bounds2D
impl Sync for Bounds2D
impl Unpin for Bounds2D
impl UnwindSafe for Bounds2D
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