#[non_exhaustive]pub struct PolygonShape {
pub fill_rule: Option<FillRule>,
pub coordinates: Box<[PolygonCoordinate]>,
}Expand description
Represents a polygon() shape.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fill_rule: Option<FillRule>The fill rule to use
coordinates: Box<[PolygonCoordinate]>List of coordinate pairs defining the polygon vertices
Trait Implementations§
Source§impl Clone for PolygonShape
impl Clone for PolygonShape
Source§fn clone(&self) -> PolygonShape
fn clone(&self) -> PolygonShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolygonShape
impl Debug for PolygonShape
Source§impl PartialEq for PolygonShape
impl PartialEq for PolygonShape
Source§fn eq(&self, other: &PolygonShape) -> bool
fn eq(&self, other: &PolygonShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolygonShape
Auto Trait Implementations§
impl Freeze for PolygonShape
impl RefUnwindSafe for PolygonShape
impl Send for PolygonShape
impl Sync for PolygonShape
impl Unpin for PolygonShape
impl UnsafeUnpin for PolygonShape
impl UnwindSafe for PolygonShape
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