[][src]Struct lyon_path::VertexId

pub struct VertexId(pub Index);

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) -> Index[src]

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

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

Trait Implementations

impl PartialEq<VertexId> for VertexId[src]

impl Clone for VertexId[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<u16> for VertexId[src]

impl From<u32> for VertexId[src]

impl From<i32> 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 Eq for VertexId[src]

impl Copy for VertexId[src]

impl Hash for VertexId[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Add<u32> for VertexId[src]

type Output = Self

The resulting type after applying the + operator.

impl Sub<u32> for VertexId[src]

type Output = Self

The resulting type after applying the - operator.

impl<'l> Index<VertexId> for PathSlice<'l>[src]

type Output = Point

The returned type after indexing.

impl Index<VertexId> for Path[src]

type Output = Point

The returned type after indexing.

impl IndexMut<VertexId> for Path[src]

impl Debug for VertexId[src]

Auto Trait Implementations

impl Send for VertexId

impl Sync for VertexId

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.