#[non_exhaustive]#[repr(u32)]pub enum PathEvent {
Begin = 0,
Line = 1,
Quadratic = 2,
Cubic = 3,
EndOpen = 4,
EndClosed = 5,
}Expand description
PathEvent is a low-level data structure describing the composition of a path. Typically it is generated at compile time from a higher-level description, such as SVG commands.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Begin = 0
The beginning of the path.
Line = 1
A straight line on the path.
Quadratic = 2
A quadratic bezier curve on the path.
Cubic = 3
A cubic bezier curve on the path.
EndOpen = 4
The end of the path that remains open.
EndClosed = 5
The end of a path that is closed.
Trait Implementations§
impl Copy for PathEvent
impl Eq for PathEvent
impl StructuralPartialEq for PathEvent
Auto Trait Implementations§
impl Freeze for PathEvent
impl RefUnwindSafe for PathEvent
impl Send for PathEvent
impl Sync for PathEvent
impl Unpin for PathEvent
impl UnwindSafe for PathEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Converts the given value to a
SharedString.