pub struct TaggedRing {
pub points: Vec<Point>,
pub tags: Vec<u64>,
}Expand description
A ring whose edges carry user tags (see the provenance section).
tags[i] is the tag of the edge from points[i] to points[(i + 1) % n]. A vertex
points[i] therefore sits between the edges tagged tags[i - 1] and tags[i]; when the
two differ, the vertex is where two source edges meet (often a new intersection vertex).
Fields§
§points: Vec<Point>Vertices, as in Ring.
One tag per edge; same length as points.
Implementations§
Trait Implementations§
Source§impl Clone for TaggedRing
impl Clone for TaggedRing
Source§impl Debug for TaggedRing
impl Debug for TaggedRing
Source§impl Default for TaggedRing
impl Default for TaggedRing
Source§impl<'de> Deserialize<'de> for TaggedRing
impl<'de> Deserialize<'de> for TaggedRing
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 TaggedRing
Source§impl Hash for TaggedRing
impl Hash for TaggedRing
Source§impl PartialEq for TaggedRing
impl PartialEq for TaggedRing
Source§impl RingSource for TaggedRing
impl RingSource for TaggedRing
Source§fn visit_rings(&self, f: &mut VertexVisitor<'_>)
fn visit_rings(&self, f: &mut VertexVisitor<'_>)
Calls
f(points, tags) for every ring. tags, when present, has one tag per edge.Source§impl Serialize for TaggedRing
impl Serialize for TaggedRing
impl StructuralPartialEq for TaggedRing
Auto Trait Implementations§
impl Freeze for TaggedRing
impl RefUnwindSafe for TaggedRing
impl Send for TaggedRing
impl Sync for TaggedRing
impl Unpin for TaggedRing
impl UnsafeUnpin for TaggedRing
impl UnwindSafe for TaggedRing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more