pub enum PathOperation {
MoveTo(f32, f32),
LineTo(f32, f32),
CurveTo(f32, f32, f32, f32, f32, f32),
Rectangle(f32, f32, f32, f32),
ClosePath,
}Expand description
A single path operation.
Variants§
MoveTo(f32, f32)
Move to a point (m operator)
LineTo(f32, f32)
Line to a point (l operator)
CurveTo(f32, f32, f32, f32, f32, f32)
Bezier curve to a point (c operator) (control1_x, control1_y, control2_x, control2_y, end_x, end_y)
Rectangle(f32, f32, f32, f32)
Rectangle (re operator) (x, y, width, height)
ClosePath
Close the current path (h operator)
Trait Implementations§
Source§impl Clone for PathOperation
impl Clone for PathOperation
Source§fn clone(&self) -> PathOperation
fn clone(&self) -> PathOperation
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 PathOperation
impl Debug for PathOperation
Source§impl PartialEq for PathOperation
impl PartialEq for PathOperation
Source§impl Serialize for PathOperation
impl Serialize for PathOperation
impl Copy for PathOperation
impl StructuralPartialEq for PathOperation
Auto Trait Implementations§
impl Freeze for PathOperation
impl RefUnwindSafe for PathOperation
impl Send for PathOperation
impl Sync for PathOperation
impl Unpin for PathOperation
impl UnsafeUnpin for PathOperation
impl UnwindSafe for PathOperation
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more