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
Begin
Line
Quadratic
Cubic
End
Implementations
sourceimpl 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
sourceimpl<Endpoint: PartialEq, ControlPoint: PartialEq> PartialEq<Event<Endpoint, ControlPoint>> for Event<Endpoint, ControlPoint>
impl<Endpoint: PartialEq, ControlPoint: PartialEq> PartialEq<Event<Endpoint, ControlPoint>> 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> StructuralEq for Event<Endpoint, ControlPoint>
impl<Endpoint, ControlPoint> StructuralPartialEq for Event<Endpoint, ControlPoint>
Auto Trait Implementations
impl<Endpoint, ControlPoint> RefUnwindSafe for Event<Endpoint, ControlPoint> where
ControlPoint: RefUnwindSafe,
Endpoint: RefUnwindSafe,
impl<Endpoint, ControlPoint> Send for Event<Endpoint, ControlPoint> where
ControlPoint: Send,
Endpoint: Send,
impl<Endpoint, ControlPoint> Sync for Event<Endpoint, ControlPoint> where
ControlPoint: Sync,
Endpoint: Sync,
impl<Endpoint, ControlPoint> Unpin for Event<Endpoint, ControlPoint> where
ControlPoint: Unpin,
Endpoint: Unpin,
impl<Endpoint, ControlPoint> UnwindSafe for Event<Endpoint, ControlPoint> where
ControlPoint: UnwindSafe,
Endpoint: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more