pub struct PathElement<E, M>{
pub point: Coord,
pub edge: Edge<Node<E>>,
pub metadata: M,
}Expand description
An element within a path, consisting of the [Point] the element represents within the path, as well as metadata (Meta) for the path element, and the edge within the source network at which the element exists.
Fields§
§point: Coord§edge: Edge<Node<E>>§metadata: MImplementations§
Trait Implementations§
Source§impl<E, M> Debug for PathElement<E, M>
impl<E, M> Debug for PathElement<E, M>
Source§impl<E, M> FromIterator<PathElement<E, M>> for Path<E, M>
impl<E, M> FromIterator<PathElement<E, M>> for Path<E, M>
Source§fn from_iter<I: IntoIterator<Item = PathElement<E, M>>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = PathElement<E, M>>>(iter: I) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<E, M> Freeze for PathElement<E, M>
impl<E, M> RefUnwindSafe for PathElement<E, M>where
M: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, M> Send for PathElement<E, M>
impl<E, M> Sync for PathElement<E, M>
impl<E, M> Unpin for PathElement<E, M>
impl<E, M> UnsafeUnpin for PathElement<E, M>where
M: UnsafeUnpin,
E: UnsafeUnpin,
impl<E, M> UnwindSafe for PathElement<E, M>where
M: UnwindSafe,
E: UnwindSafe,
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> 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