pub enum PathCommand {
MoveTo(Point),
LineTo(Point),
QuadTo {
control: Point,
end: Point,
},
CubicTo {
control1: Point,
control2: Point,
end: Point,
},
ArcTo {
radii: Vec2,
rotation: f32,
large_arc: bool,
sweep: bool,
end: Point,
},
Close,
}Expand description
Path command for building vector paths
Variants§
MoveTo(Point)
Move to a point
LineTo(Point)
Line to a point
QuadTo
Quadratic Bézier curve
CubicTo
Cubic Bézier curve
ArcTo
Arc to a point
Close
Close the current subpath
Trait Implementations§
Source§impl Clone for PathCommand
impl Clone for PathCommand
Source§fn clone(&self) -> PathCommand
fn clone(&self) -> PathCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PathCommand
impl RefUnwindSafe for PathCommand
impl Send for PathCommand
impl Sync for PathCommand
impl Unpin for PathCommand
impl UnsafeUnpin for PathCommand
impl UnwindSafe for PathCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more