pub struct Shapes<C>where
C: CoordinateType,{ /* private fields */ }Expand description
Shapes<T> is a collection of Shape<T> structs. Each of
the elements is assigned an index when inserted into the collection.
Trait Implementations§
Source§impl<C: CoordinateType> TryBoundingBox<C> for Shapes<C>
impl<C: CoordinateType> TryBoundingBox<C> for Shapes<C>
Source§fn try_bounding_box(&self) -> Option<Rect<C>>
fn try_bounding_box(&self) -> Option<Rect<C>>
Return the bounding box of this geometry if a bounding box is defined.
Auto Trait Implementations§
impl<C> Freeze for Shapes<C>
impl<C> RefUnwindSafe for Shapes<C>where
C: RefUnwindSafe,
impl<C> Send for Shapes<C>where
C: Send,
impl<C> Sync for Shapes<C>where
C: Sync,
impl<C> Unpin for Shapes<C>where
C: Unpin,
impl<C> UnwindSafe for Shapes<C>where
C: 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