pub enum Event<Endpoint, ControlPoint> {
Begin {
at: Endpoint,
},
Line {
from: Endpoint,
to: Endpoint,
},
Quadratic {
from: Endpoint,
ctrl: ControlPoint,
to: Endpoint,
},
Cubic {
from: Endpoint,
ctrl1: ControlPoint,
ctrl2: ControlPoint,
to: Endpoint,
},
End {
last: Endpoint,
first: Endpoint,
close: bool,
},
}
Expand description
Represents an event or edge of path.
Variants§
Implementations§
source§impl Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>
impl Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>
pub fn transformed<T: Transformation<f32>>(&self, mat: &T) -> Self
Trait Implementations§
source§impl FromIterator<Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>> for Path
impl FromIterator<Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>> for Path
source§impl<Endpoint: PartialEq, ControlPoint: PartialEq> PartialEq for Event<Endpoint, ControlPoint>
impl<Endpoint: PartialEq, ControlPoint: PartialEq> PartialEq for Event<Endpoint, ControlPoint>
impl<Endpoint: Copy, ControlPoint: Copy> Copy for Event<Endpoint, ControlPoint>
impl<Endpoint: Eq, ControlPoint: Eq> Eq for Event<Endpoint, ControlPoint>
impl<Endpoint, ControlPoint> StructuralPartialEq for Event<Endpoint, ControlPoint>
Auto Trait Implementations§
impl<Endpoint, ControlPoint> Freeze for Event<Endpoint, ControlPoint>
impl<Endpoint, ControlPoint> RefUnwindSafe for Event<Endpoint, ControlPoint>where
Endpoint: RefUnwindSafe,
ControlPoint: RefUnwindSafe,
impl<Endpoint, ControlPoint> Send for Event<Endpoint, ControlPoint>
impl<Endpoint, ControlPoint> Sync for Event<Endpoint, ControlPoint>
impl<Endpoint, ControlPoint> Unpin for Event<Endpoint, ControlPoint>
impl<Endpoint, ControlPoint> UnwindSafe for Event<Endpoint, ControlPoint>where
Endpoint: UnwindSafe,
ControlPoint: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)