Enum usvg::PathSegment [] [src]

pub enum PathSegment {
    MoveTo {
        x: f64,
        y: f64,
    },
    LineTo {
        x: f64,
        y: f64,
    },
    CurveTo {
        x1: f64,
        y1: f64,
        x2: f64,
        y2: f64,
        x: f64,
        y: f64,
    },
    ClosePath,
}

A path absolute segment.

Unlike the SVG spec can contain only M, L, C and Z segments. All other segments will be converted to this one.

Variants

Fields of MoveTo

Fields of LineTo

Fields of CurveTo

Trait Implementations

impl Clone for PathSegment
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for PathSegment
[src]

impl PartialEq for PathSegment
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for PathSegment
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PathSegment

impl Sync for PathSegment