pub enum MotionPathCommand {
MoveTo(MotionPathPoint),
LineTo(MotionPathPoint),
QuadraticTo {
control: MotionPathPoint,
to: MotionPathPoint,
},
CubicTo {
control1: MotionPathPoint,
control2: MotionPathPoint,
to: MotionPathPoint,
},
ArcTo {
radius_x: f32,
radius_y: f32,
x_axis_rotation: f32,
large_arc: bool,
sweep: bool,
to: MotionPathPoint,
},
Close,
}Expand description
One command in an absolute SVG offset-path: path() value.
Variants§
MoveTo(MotionPathPoint)
Start a new subpath.
LineTo(MotionPathPoint)
Add a straight segment.
QuadraticTo
Add a quadratic Bezier segment.
CubicTo
Add a cubic Bezier segment.
Fields
§
control1: MotionPathPointFirst curve control point.
§
control2: MotionPathPointSecond curve control point.
§
to: MotionPathPointSegment endpoint.
ArcTo
Add an absolute SVG elliptical arc segment.
Fields
§
to: MotionPathPointSegment endpoint.
Close
Close the current subpath.
Trait Implementations§
Source§impl Clone for MotionPathCommand
impl Clone for MotionPathCommand
Source§fn clone(&self) -> MotionPathCommand
fn clone(&self) -> MotionPathCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MotionPathCommand
Source§impl Debug for MotionPathCommand
impl Debug for MotionPathCommand
Source§impl PartialEq for MotionPathCommand
impl PartialEq for MotionPathCommand
impl StructuralPartialEq for MotionPathCommand
Auto Trait Implementations§
impl Freeze for MotionPathCommand
impl RefUnwindSafe for MotionPathCommand
impl Send for MotionPathCommand
impl Sync for MotionPathCommand
impl Unpin for MotionPathCommand
impl UnsafeUnpin for MotionPathCommand
impl UnwindSafe for MotionPathCommand
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