pub enum PathCommand {
MoveTo(f32, f32),
LineTo(f32, f32),
QuadTo(f32, f32, f32, f32),
CubicTo(f32, f32, f32, f32, f32, f32),
Close,
}Expand description
One resolved path segment, absolute.
Variants§
MoveTo(f32, f32)
Start a new subpath at this point.
LineTo(f32, f32)
Straight segment to this point.
QuadTo(f32, f32, f32, f32)
Quadratic segment: control point, then the on-curve endpoint.
CubicTo(f32, f32, f32, f32, f32, f32)
Cubic segment: two control points, then the endpoint.
Close
Close the current subpath.
Implementations§
Trait Implementations§
Source§impl Clone for PathCommand
impl Clone for PathCommand
impl Copy for PathCommand
Source§impl Debug for PathCommand
impl Debug for PathCommand
Source§impl PartialEq for PathCommand
impl PartialEq for PathCommand
impl StructuralPartialEq for PathCommand
Auto 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