#[repr(C)]pub enum PathElement {
MoveTo(PathMoveTo),
LineTo(PathLineTo),
ArcTo(PathArcTo),
CubicTo(PathCubicTo),
QuadraticTo(PathQuadraticTo),
Close,
}
Expand description
PathElement describes a single element on a path, such as move-to, line-to, etc.
Variants§
MoveTo(PathMoveTo)
The MoveTo variant sets the current position on the path.
LineTo(PathLineTo)
The LineTo variant describes a line.
ArcTo(PathArcTo)
The PathArcTo variant describes an arc.
CubicTo(PathCubicTo)
The CubicTo variant describes a Bézier curve with two control points.
QuadraticTo(PathQuadraticTo)
The QuadraticTo variant describes a Bézier curve with one control point.
Close
Indicates that the path should be closed now by connecting to the starting point.
Trait Implementations§
Source§impl Clone for PathElement
impl Clone for PathElement
Source§fn clone(&self) -> PathElement
fn clone(&self) -> PathElement
Returns a copy 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 moreSource§impl Debug for PathElement
impl Debug for PathElement
Source§impl From<PathArcTo> for PathElement
impl From<PathArcTo> for PathElement
Source§impl From<PathCubicTo> for PathElement
impl From<PathCubicTo> for PathElement
Source§fn from(value: PathCubicTo) -> Self
fn from(value: PathCubicTo) -> Self
Converts to this type from the input type.
Source§impl From<PathLineTo> for PathElement
impl From<PathLineTo> for PathElement
Source§fn from(value: PathLineTo) -> Self
fn from(value: PathLineTo) -> Self
Converts to this type from the input type.
Source§impl From<PathMoveTo> for PathElement
impl From<PathMoveTo> for PathElement
Source§fn from(value: PathMoveTo) -> Self
fn from(value: PathMoveTo) -> Self
Converts to this type from the input type.
Source§impl From<PathQuadraticTo> for PathElement
impl From<PathQuadraticTo> for PathElement
Source§fn from(value: PathQuadraticTo) -> Self
fn from(value: PathQuadraticTo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PathElement
impl PartialEq for PathElement
impl StructuralPartialEq for PathElement
Auto Trait Implementations§
impl Freeze for PathElement
impl RefUnwindSafe for PathElement
impl Send for PathElement
impl Sync for PathElement
impl Unpin for PathElement
impl UnwindSafe for PathElement
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