Enum lyon_tessellation::VertexSource
source · pub enum VertexSource {
Endpoint {
id: EndpointId,
},
Edge {
from: EndpointId,
to: EndpointId,
t: f32,
},
}
Expand description
Where a vertex produced by a tessellator comes from in the original path.
In most cases, vertices come directly from an endpoint. However, Curve
approximations and self-intersections can introduce vertices that are on
one or several edges, at a certain parameter t
between the two endpoints
of the edge.
Variants§
Trait Implementations§
source§impl Clone for VertexSource
impl Clone for VertexSource
source§fn clone(&self) -> VertexSource
fn clone(&self) -> VertexSource
Returns a copy 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 VertexSource
impl Debug for VertexSource
source§impl PartialEq for VertexSource
impl PartialEq for VertexSource
source§fn eq(&self, other: &VertexSource) -> bool
fn eq(&self, other: &VertexSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VertexSource
impl StructuralPartialEq for VertexSource
Auto Trait Implementations§
impl RefUnwindSafe for VertexSource
impl Send for VertexSource
impl Sync for VertexSource
impl Unpin for VertexSource
impl UnwindSafe for VertexSource
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