pub enum PathEl {
MoveTo(Point),
LineTo(Point),
QuadTo(Point, Point),
CubicTo(Point, Point, Point),
Close,
}Expand description
Path element.
Variants§
MoveTo(Point)
Start a new subpath.
LineTo(Point)
Straight line.
QuadTo(Point, Point)
Quadratic Bézier (control, end).
CubicTo(Point, Point, Point)
Cubic Bézier (control 1, control 2, end).
Close
Close the current subpath.
Trait Implementations§
impl Copy for PathEl
Source§impl<'de> Deserialize<'de> for PathEl
impl<'de> Deserialize<'de> for PathEl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PathEl
Auto Trait Implementations§
impl Freeze for PathEl
impl RefUnwindSafe for PathEl
impl Send for PathEl
impl Sync for PathEl
impl Unpin for PathEl
impl UnsafeUnpin for PathEl
impl UnwindSafe for PathEl
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