Struct lyon_tessellation::geometry_builder::VertexId [−][src]
pub struct VertexId(pub Index);
A virtual vertex offset in a geometry.
The VertexId
s 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]
impl VertexId
Trait Implementations
impl Copy for VertexId
[src]
impl Copy for VertexId
impl Clone for VertexId
[src]
impl Clone for VertexId
fn clone(&self) -> VertexId
[src]
fn clone(&self) -> VertexId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for VertexId
[src]
impl Debug for VertexId
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for VertexId
[src]
impl PartialEq for VertexId
fn eq(&self, other: &VertexId) -> bool
[src]
fn eq(&self, other: &VertexId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &VertexId) -> bool
[src]
fn ne(&self, other: &VertexId) -> bool
This method tests for !=
.
impl Eq for VertexId
[src]
impl Eq for VertexId
impl Hash for VertexId
[src]
impl Hash for VertexId
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[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]
impl Add<u32> for VertexId
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Self
[src]
fn add(self, rhs: u32) -> Self
Performs the +
operation.
impl From<u16> for VertexId
[src]
impl From<u16> for VertexId
impl From<u32> for VertexId
[src]
impl From<u32> for VertexId
impl From<i32> for VertexId
[src]
impl From<i32> for VertexId
impl From<VertexId> for u16
[src]
impl From<VertexId> for u16
impl From<VertexId> for u32
[src]
impl From<VertexId> for u32
impl From<VertexId> for i32
[src]
impl From<VertexId> for i32