#[repr(C)]pub enum PathData {
None,
Elements(SharedVector<PathElement>),
Events(SharedVector<PathEvent>, SharedVector<Point>),
Commands(SharedString),
}
Expand description
PathData represents a path described by either high-level elements or low-level events and coordinates.
Variants§
None
None is the variant when the path is empty.
Elements(SharedVector<PathElement>)
The Elements variant is used to make a Path from shared arrays of elements.
Events(SharedVector<PathEvent>, SharedVector<Point>)
The Events variant describes the path as a series of low-level events and associated coordinates.
Commands(SharedString)
The Commands variant describes the path as a series of SVG encoded path commands.
Implementations§
Trait Implementations§
impl StructuralPartialEq for PathData
Auto Trait Implementations§
impl Freeze for PathData
impl RefUnwindSafe for PathData
impl Send for PathData
impl !Sync for PathData
impl Unpin for PathData
impl UnwindSafe for PathData
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