#[repr(C)]pub struct ShapePolygon {
pub points: ShapePointVec,
}Expand description
A polygon shape defined by a list of points (in clockwise order)
Fields§
§points: ShapePointVecTrait Implementations§
Source§impl Clone for ShapePolygon
impl Clone for ShapePolygon
Source§fn clone(&self) -> ShapePolygon
fn clone(&self) -> ShapePolygon
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 Debug for ShapePolygon
impl Debug for ShapePolygon
Source§impl Hash for ShapePolygon
impl Hash for ShapePolygon
Source§impl Ord for ShapePolygon
impl Ord for ShapePolygon
Source§fn cmp(&self, other: &ShapePolygon) -> Ordering
fn cmp(&self, other: &ShapePolygon) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ShapePolygon
impl PartialEq for ShapePolygon
Source§impl PartialOrd for ShapePolygon
impl PartialOrd for ShapePolygon
impl Eq for ShapePolygon
impl StructuralPartialEq for ShapePolygon
Auto Trait Implementations§
impl Freeze for ShapePolygon
impl RefUnwindSafe for ShapePolygon
impl Send for ShapePolygon
impl Sync for ShapePolygon
impl Unpin for ShapePolygon
impl UnwindSafe for ShapePolygon
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