[−][src]Struct lyon_tessellation::VertexId
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.
Implementations
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.
pub fn add(self, rhs: u32) -> Self
[src]
impl Clone for VertexId
[src]
impl Copy for VertexId
[src]
impl Debug for VertexId
[src]
impl Eq for VertexId
[src]
impl From<i32> for VertexId
[src]
impl From<u16> for VertexId
[src]
impl From<u32> for VertexId
[src]
impl Hash for VertexId
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<VertexId> for VertexId
[src]
impl StructuralEq for VertexId
[src]
impl StructuralPartialEq for VertexId
[src]
impl Sub<u32> for VertexId
[src]
Auto Trait Implementations
impl RefUnwindSafe for VertexId
[src]
impl Send for VertexId
[src]
impl Sync for VertexId
[src]
impl Unpin for VertexId
[src]
impl UnwindSafe for VertexId
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,