pub enum PathCmd {
MoveTo(f32, f32),
LineTo(f32, f32),
ArcTo(f32, f32, f32, f32, f32),
Close,
}Expand description
A path command for vector symbol rendering.
Variants§
MoveTo(f32, f32)
Move to (x, y) without drawing.
LineTo(f32, f32)
Draw a line to (x, y).
ArcTo(f32, f32, f32, f32, f32)
Draw an arc: center (cx, cy), radius, start_angle, end_angle (radians).
Close
Close the current sub-path.
Trait Implementations§
impl Copy for PathCmd
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