pub enum PathCmd {
MoveTo(f32, f32),
LineTo(f32, f32),
QuadTo(f32, f32, f32, f32),
CubicTo(f32, f32, f32, f32, f32, f32),
Close,
}Expand description
A single path command (SVG-like but simplified).
Variants§
MoveTo(f32, f32)
LineTo(f32, f32)
QuadTo(f32, f32, f32, f32)
CubicTo(f32, f32, f32, f32, f32, f32)
Close
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathCmd
impl<'de> Deserialize<'de> for PathCmd
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
Auto Trait Implementations§
impl Freeze for PathCmd
impl RefUnwindSafe for PathCmd
impl Send for PathCmd
impl Sync for PathCmd
impl Unpin for PathCmd
impl UnsafeUnpin for PathCmd
impl UnwindSafe for PathCmd
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