Struct svg::node::element::Polygon [] [src]

pub struct Polygon {
    // some fields omitted
}

A polygon element.

Methods

impl Polygon
[src]

fn new() -> Self

Create a node.

impl Polygon
[src]

fn add<T>(self, node: T) -> Self where T: Node

Append a node.

fn set<T, U>(self, name: T, value: U) -> Self where T: Into<String>, U: Into<Value>

Assign an attribute.

Trait Implementations

impl Node for Polygon
[src]

fn append<T>(&mut self, node: T) where T: Node

Append a child node.

fn assign<T, U>(&mut self, name: T, value: U) where T: Into<String>, U: Into<Value>

Assign an attribute.

impl Display for Polygon
[src]

fn fmt(&self, formatter: &mut Formatter) -> Result

Formats the value using the given formatter.