pub struct Polygon {
pub points: Vec<[f32; 2]>,
pub closed: bool,
pub style: Style,
pub comment: Option<Comment>,
}
Expand description
<path d="..." style="..."/>
Fields§
§points: Vec<[f32; 2]>
§closed: bool
§style: Style
§comment: Option<Comment>
Implementations§
source§impl Polygon
impl Polygon
pub fn open(self) -> Self
pub fn fill<F>(self, fill: F) -> Self
pub fn stroke<S>(self, stroke: S) -> Self
pub fn opacity(self, opacity: f32) -> Self
pub fn stroke_opacity(self, opacity: f32) -> Self
pub fn style(self, style: Style) -> Self
pub fn comment(self, text: &str) -> Self
Trait Implementations§
impl StructuralPartialEq for Polygon
Auto Trait Implementations§
impl Freeze for Polygon
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)