#[non_exhaustive]pub enum PathNodeType {
MoveTo,
LineTo,
CurveTo,
Close,
RelMoveTo,
RelLineTo,
RelCurveTo,
}
Expand description
Types of nodes in a Path
.
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.
MoveTo
jump to the given position
LineTo
create a line from the last node to the given position
CurveTo
bezier curve using the last position and three control points.
Close
create a line from the last node to the last
PathNodeType::MoveTo
node.
RelMoveTo
same as PathNodeType::MoveTo
but with
coordinates relative to the last node.
RelLineTo
same as PathNodeType::LineTo
but with
coordinates relative to the last node.
RelCurveTo
same as PathNodeType::CurveTo
but with
coordinates relative to the last node.
Trait Implementations§
Source§impl Clone for PathNodeType
impl Clone for PathNodeType
Source§fn clone(&self) -> PathNodeType
fn clone(&self) -> PathNodeType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PathNodeType
impl Debug for PathNodeType
Source§impl Display for PathNodeType
impl Display for PathNodeType
Source§impl<'a> FromValue<'a> for PathNodeType
impl<'a> FromValue<'a> for PathNodeType
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for PathNodeType
impl<'a> FromValueOptional<'a> for PathNodeType
Source§impl Hash for PathNodeType
impl Hash for PathNodeType
Source§impl Ord for PathNodeType
impl Ord for PathNodeType
Source§fn cmp(&self, other: &PathNodeType) -> Ordering
fn cmp(&self, other: &PathNodeType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PathNodeType
impl PartialEq for PathNodeType
Source§impl PartialOrd for PathNodeType
impl PartialOrd for PathNodeType
Source§impl SetValue for PathNodeType
impl SetValue for PathNodeType
Source§impl StaticType for PathNodeType
impl StaticType for PathNodeType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for PathNodeType
impl Eq for PathNodeType
impl StructuralPartialEq for PathNodeType
Auto Trait Implementations§
impl Freeze for PathNodeType
impl RefUnwindSafe for PathNodeType
impl Send for PathNodeType
impl Sync for PathNodeType
impl Unpin for PathNodeType
impl UnwindSafe for PathNodeType
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<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.