pub struct Polygon {
pub points: Vec<[f32; 2]>,
pub closed: bool,
pub style: Style,
}
Expand description
<path d="..." style="..."/>
Fields§
§points: Vec<[f32; 2]>
§closed: bool
§style: Style
Implementations§
source§impl Polygon
impl Polygon
pub fn open(self) -> Self
pub fn fill<F>(self, fill: F) -> Selfwhere F: Into<Fill>,
pub fn stroke<S>(self, stroke: S) -> Selfwhere S: Into<Stroke>,
pub fn opacity(self, opacity: f32) -> Self
pub fn stroke_opacity(self, opacity: f32) -> Self
pub fn style(self, style: Style) -> Self
Trait Implementations§
source§impl PartialEq<Polygon> for Polygon
impl PartialEq<Polygon> for Polygon
impl StructuralPartialEq for Polygon
Auto Trait Implementations§
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnwindSafe for Polygon
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