pub enum PathCommand {
MoveTo(Point),
LineTo(Point),
ArcTo(Point, Point, f64, bool, bool),
QuadraticTo(Point, Point),
CubicTo(Point, Point, Point),
Close,
}Expand description
A command in a path
Variants§
MoveTo(Point)
LineTo(Point)
ArcTo(Point, Point, f64, bool, bool)
QuadraticTo(Point, Point)
CubicTo(Point, Point, Point)
Close
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 (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 PathCommand
Source§impl Debug for PathCommand
impl Debug for PathCommand
Source§impl ExtendFromInternalIterator<PathCommand> for Path
impl ExtendFromInternalIterator<PathCommand> for Path
Source§fn extend_from_internal_iter<I>(&mut self, internal_iter: I)where
I: IntoInternalIterator<Item = PathCommand>,
fn extend_from_internal_iter<I>(&mut self, internal_iter: I)where
I: IntoInternalIterator<Item = PathCommand>,
Extends
self with each item of internal_iter.Source§impl FromInternalIterator<PathCommand> for Path
impl FromInternalIterator<PathCommand> for Path
Source§fn from_internal_iter<I>(internal_iter: I) -> Pathwhere
I: IntoInternalIterator<Item = PathCommand>,
fn from_internal_iter<I>(internal_iter: I) -> Pathwhere
I: IntoInternalIterator<Item = PathCommand>,
Creates
Self from an internal iterator. Read moreSource§impl PartialEq for PathCommand
impl PartialEq for PathCommand
Source§fn eq(&self, other: &PathCommand) -> bool
fn eq(&self, other: &PathCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PathCommand
Source§impl Transform for PathCommand
impl Transform for PathCommand
fn transform<T>(self, t: &T) -> PathCommandwhere
T: Transformation,
fn transform_mut<T>(&mut self, t: &T)where
T: Transformation,
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> ActionTrait for T
impl<T> ActionTrait for T
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