[][src]Struct lyon_tessellation::VertexId

pub struct VertexId(pub u32);

A virtual vertex offset in a geometry.

The VertexIds are only valid between GeometryBuilder::begin_geometry and GeometryBuilder::end_geometry. GeometryBuilder implementations typically be translate the ids internally so that first VertexId after begin_geometry is zero.

Methods

impl VertexId[src]

pub const INVALID: VertexId[src]

pub fn offset(&self) -> u32[src]

pub fn to_usize(&self) -> usize[src]

pub fn from_usize(v: usize) -> Self[src]

Trait Implementations

impl Add<u32> for VertexId[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for VertexId[src]

impl Copy for VertexId[src]

impl Debug for VertexId[src]

impl Eq for VertexId[src]

impl From<VertexId> for u16[src]

impl From<VertexId> for u32[src]

impl From<VertexId> for i32[src]

impl From<VertexId> for usize[src]

impl From<i32> for VertexId[src]

impl From<u16> for VertexId[src]

impl From<u32> for VertexId[src]

impl Hash for VertexId[src]

impl PartialEq<VertexId> for VertexId[src]

impl StructuralEq for VertexId[src]

impl StructuralPartialEq for VertexId[src]

impl Sub<u32> for VertexId[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.