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

A rectangle element

Implementations

Create a new path

  • points: The left upper and right lower corner of the rectangle
  • style: The shape style
  • returns the created element

Set the margin of the rectangle

  • t: The top margin
  • b: The bottom margin
  • l: The left margin
  • r: The right margin

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.