[−][src]Struct lyon_path::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.
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(&self) -> 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<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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.
fn add(self, rhs: u32) -> Self
[src]
impl Sub<u32> for VertexId
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Self
[src]
impl<'l> Index<VertexId> for PathSlice<'l>
[src]
impl Index<VertexId> for Path
[src]
impl IndexMut<VertexId> for Path
[src]
impl Debug for VertexId
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,