Enum usvg::tree::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
MoveTo
Fields of MoveTo
x: f64 | |
y: f64 |
LineTo
Fields of LineTo
x: f64 | |
y: f64 |
CurveTo
Fields of CurveTo
x1: f64 | |
y1: f64 | |
x2: f64 | |
y2: f64 | |
x: f64 | |
y: f64 |
ClosePath
Trait Implementations
impl Clone for PathSegment
[src]
fn clone(&self) -> PathSegment
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for PathSegment
[src]
impl PartialEq for PathSegment
[src]
fn eq(&self, __arg_0: &PathSegment) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PathSegment) -> bool
[src]
This method tests for !=
.