pub enum GeometryType<T: FloatIsh> {
Point(Point<T>),
Line(LineSegment<T>),
Polygon(Polygon<T>),
Rectangle(Rectangle<T>),
}Variants§
Trait Implementations§
Source§impl<T: Clone + FloatIsh> Clone for GeometryType<T>
impl<T: Clone + FloatIsh> Clone for GeometryType<T>
Source§fn clone(&self) -> GeometryType<T>
fn clone(&self) -> GeometryType<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: FloatIsh> Geometry<T> for GeometryType<T>
impl<T: FloatIsh> Geometry<T> for GeometryType<T>
impl<T: FloatIsh> StructuralPartialEq for GeometryType<T>
Auto Trait Implementations§
impl<T> Freeze for GeometryType<T>where
T: Freeze,
impl<T> RefUnwindSafe for GeometryType<T>where
T: RefUnwindSafe,
impl<T> Send for GeometryType<T>where
T: Send,
impl<T> Sync for GeometryType<T>where
T: Sync,
impl<T> Unpin for GeometryType<T>where
T: Unpin,
impl<T> UnwindSafe for GeometryType<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