pub struct Polygon<Coord> { /* private fields */ }
Expand description

An element of a filled polygon

Implementations

Create a new polygon

  • points: The iterator of the points
  • style: The shape style
  • returns the created element

Trait Implementations

Actually draws the element. The key points is already translated into the image coordinate and can be used by DC directly Read more
The item in point iterator
The point iterator
framework to do the coordinate mapping

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Make the conversion
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.