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
Endpoint
Fields
id: EndpointId
Edge
Implementations
sourceimpl VertexSource
impl VertexSource
Trait Implementations
sourceimpl Clone for VertexSource
impl Clone for VertexSource
sourcefn clone(&self) -> VertexSource
fn clone(&self) -> VertexSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VertexSource
impl Debug for VertexSource
sourceimpl PartialEq<VertexSource> for VertexSource
impl PartialEq<VertexSource> for VertexSource
sourcefn eq(&self, other: &VertexSource) -> bool
fn eq(&self, other: &VertexSource) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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