pub struct EdgeId(pub u16);Expand description
Identifies an input edge of a Polygon.
§The EdgeId / VertexId correspondence
Edge i is the edge that starts at vertex i and ends at the next
vertex of the same ring (wrapping at the ring’s end). So EdgeId(i) and
VertexId(i) always share a number, and converting between an edge and its
start vertex is free. This is the whole reason the crate stores rings
flattened.
Tuple Fields§
§0: u16Implementations§
Trait Implementations§
impl Copy for EdgeId
Source§impl<'de> Deserialize<'de> for EdgeId
impl<'de> Deserialize<'de> for EdgeId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EdgeId
Source§impl Ord for EdgeId
impl Ord for EdgeId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for EdgeId
impl PartialOrd for EdgeId
impl StructuralPartialEq for EdgeId
Auto Trait Implementations§
impl Freeze for EdgeId
impl RefUnwindSafe for EdgeId
impl Send for EdgeId
impl Sync for EdgeId
impl Unpin for EdgeId
impl UnsafeUnpin for EdgeId
impl UnwindSafe for EdgeId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more