Enum font::Segment [] [src]

pub enum Segment {
    Linear(Offset),
    Quadratic(OffsetOffset),
    Cubic(OffsetOffsetOffset),
}

A segment.

Variants

Linear(Offset)

A line.

Quadratic(OffsetOffset)

A quadratic Bézier curve.

Cubic(OffsetOffsetOffset)

A cubic Bézier curve.

Trait Implementations

impl PartialEq for Segment
[src]

fn eq(&self, __arg_0: &Segment) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Segment) -> bool

This method tests for !=.

impl Debug for Segment
[src]

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

Formats the value using the given formatter.

impl Copy for Segment
[src]

impl Clone for Segment
[src]

fn clone(&self) -> Segment

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more