Struct msdfgen::Contour

source ·
#[repr(transparent)]
pub struct Contour { /* private fields */ }
Expand description

Contour object

Implementations§

Adds an edge to the contour.

Creates a new edge in the contour and returns its reference.

Adds segment as an edge to the contour.

Adjusts the bounding box to fit the contour.

Gets the bounding box to fit the contour.

Adjusts the bounding box to fit the contour border’s mitered corners.

Gets the bounding box to fit the contour border’s mitered corners.

Computes the winding of the contour. Returns 1 if positive, -1 if negative.

Trait Implementations§

Creates new empty contour (with no edges)

Executes the destructor for this type. Read more

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.