Struct lyon_tessellation::FillVertex [−][src]
Extra vertex information from the FillTessellator
, accessible when building vertices.
Implementations
impl<'l> FillVertex<'l>
[src]
pub fn position(&self) -> Point
[src]
pub fn sources(&self) -> VertexSourceIterator<'_>ⓘNotable traits for VertexSourceIterator<'l>
impl<'l> Iterator for VertexSourceIterator<'l> type Item = VertexSource;
[src]
Notable traits for VertexSourceIterator<'l>
impl<'l> Iterator for VertexSourceIterator<'l> type Item = VertexSource;
Return an iterator over the sources of the vertex.
pub fn as_endpoint_id(&self) -> Option<EndpointId>
[src]
Returns the first endpoint that this vertex is on, if any.
This is meant to be used only in very simple cases where self-intersections,
overlapping vertices and curves are unexpected.
This will return None
at self-intersections and between the endpoints of
a flattened curve. If two endpoints are at the same position only one of
them is returned.
See also: FillVertex::sources
.
pub fn interpolated_attributes(&mut self) -> &[f32]
[src]
Fetch or interpolate the custom attribute values at this vertex.
Auto Trait Implementations
impl<'l> !RefUnwindSafe for FillVertex<'l>
[src]
impl<'l> !Send for FillVertex<'l>
[src]
impl<'l> !Sync for FillVertex<'l>
[src]
impl<'l> Unpin for FillVertex<'l>
[src]
impl<'l> !UnwindSafe for FillVertex<'l>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,