pub struct Text<'a, Coord, T: Borrow<str>> { /* private fields */ }
Expand description

A single line text element. This can be owned or borrowed string, dependents on String or str moved into.

Implementations

Create a new text element

  • text: The text for the element
  • points: The upper left conner for the text element
  • style: The text style
  • Return the newly created text 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.

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.