pub enum Geometry<T> {
Point(Point<T>),
Edge(Edge<T>),
Rect(Rect<T>),
Polyline(Polyline<T>),
Polygon(Polygon<T>),
Path(Path<T>),
Text(Text<T>),
}Variants§
Point(Point<T>)
Edge(Edge<T>)
Rect(Rect<T>)
Polyline(Polyline<T>)
Polygon(Polygon<T>)
Path(Path<T>)
Text(Text<T>)
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Geometry<T>
impl<T: PartialEq> StructuralPartialEq for Geometry<T>
Source§impl<T: Copy + PartialOrd + Num> TryBoundingBox<T> for Geometry<T>
impl<T: Copy + PartialOrd + Num> TryBoundingBox<T> for Geometry<T>
fn try_bounding_box(&self) -> Option<Rect<T>>
Auto Trait Implementations§
impl<T> Freeze for Geometry<T>
impl<T> RefUnwindSafe for Geometry<T>where
Point<T>: RefUnwindSafe,
Edge<T>: RefUnwindSafe,
Rect<T>: RefUnwindSafe,
Polyline<T>: RefUnwindSafe,
Polygon<T>: RefUnwindSafe,
Path<T>: RefUnwindSafe,
Text<T>: RefUnwindSafe,
impl<T> Send for Geometry<T>
impl<T> Sync for Geometry<T>
impl<T> Unpin for Geometry<T>
impl<T> UnsafeUnpin for Geometry<T>where
Point<T>: UnsafeUnpin,
Edge<T>: UnsafeUnpin,
Rect<T>: UnsafeUnpin,
Polyline<T>: UnsafeUnpin,
Polygon<T>: UnsafeUnpin,
Path<T>: UnsafeUnpin,
Text<T>: UnsafeUnpin,
impl<T> UnwindSafe for Geometry<T>where
Point<T>: UnwindSafe,
Edge<T>: UnwindSafe,
Rect<T>: UnwindSafe,
Polyline<T>: UnwindSafe,
Polygon<T>: UnwindSafe,
Path<T>: UnwindSafe,
Text<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