[−][src]Struct plexus::graph::EdgeView
View of an edge in a graph.
Provides traversals, queries, and mutations related to edges in a graph. See the module documentation for more information about topological views.
An edge connecting a vertex $A$ and a vertex $B$ is notated $\overleftrightarrow{AB}$ or $\overleftrightarrow{BA}$ (both representing the same edge). Typically, edges are described by one of their arcs (e.g., "the edge of $\overrightarrow{AB}$").
Methods
impl<M, G> EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
[src]
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
impl<'a, M, G> EdgeView<&'a mut M, G> where
M: 'a + AsStorage<EdgePayload<G>> + AsStorageMut<EdgePayload<G>>,
G: 'a + GraphGeometry,
[src]
M: 'a + AsStorage<EdgePayload<G>> + AsStorageMut<EdgePayload<G>>,
G: 'a + GraphGeometry,
pub fn into_orphan(self) -> EdgeOrphan<'a, G>
[src]
Converts a mutable view into an orphan view.
pub fn into_ref(self) -> EdgeView<&'a M, G>
[src]
Converts a mutable view into an immutable view.
This is useful when mutations are not (or no longer) needed and mutual access is desired.
impl<M, G> EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + Consistent,
G: GraphGeometry,
[src]
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + Consistent,
G: GraphGeometry,
pub fn into_arc(self) -> ArcView<M, G>
[src]
pub fn arc(&self) -> ArcView<&M::Target, G>
[src]
pub fn is_boundary_edge(&self) -> bool
[src]
impl<M, G> EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + AsStorage<VertexPayload<G>> + Consistent,
G: GraphGeometry,
[src]
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + AsStorage<VertexPayload<G>> + Consistent,
G: GraphGeometry,
pub fn midpoint(&self) -> VertexPosition<G> where
G: EdgeMidpoint,
G::Vertex: AsPosition,
[src]
G: EdgeMidpoint,
G::Vertex: AsPosition,
Trait Implementations
impl<M, G> CompositeEdge<M, G> for EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + Consistent,
G: GraphGeometry,
[src]
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + Consistent,
G: GraphGeometry,
impl<M, G> PayloadBinding for EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
[src]
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
type Key = EdgeKey
type Payload = EdgePayload<G>
fn key(&self) -> Self::Key
[src]
fn rekey<T, M>(self, key: T::Key) -> Result<T, GraphError> where
Self: Into<View<M, Self::Payload>>,
T: From<View<M, <T as PayloadBinding>::Payload>> + PayloadBinding,
M: Reborrow,
M::Target: AsStorage<Self::Payload> + AsStorage<T::Payload>,
[src]
Self: Into<View<M, Self::Payload>>,
T: From<View<M, <T as PayloadBinding>::Payload>> + PayloadBinding,
M: Reborrow,
M::Target: AsStorage<Self::Payload> + AsStorage<T::Payload>,
impl<M, G> Clone for EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
View<M, EdgePayload<G>>: Clone,
[src]
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
View<M, EdgePayload<G>>: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<M, G> Copy for EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
View<M, EdgePayload<G>>: Copy,
[src]
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
View<M, EdgePayload<G>>: Copy,
impl<M, G> PartialEq<EdgeView<M, G>> for EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>> + Consistent,
G: GraphGeometry,
[src]
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>> + Consistent,
G: GraphGeometry,
impl<M, G> Deref for EdgeView<M, G> where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
[src]
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: GraphGeometry,
type Target = EdgePayload<G>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<M, G> DerefMut for EdgeView<M, G> where
M: Reborrow + ReborrowMut,
M::Target: AsStorage<EdgePayload<G>> + AsStorageMut<EdgePayload<G>>,
G: GraphGeometry,
[src]
M: Reborrow + ReborrowMut,
M::Target: AsStorage<EdgePayload<G>> + AsStorageMut<EdgePayload<G>>,
G: GraphGeometry,
Auto Trait Implementations
impl<M, G> Send for EdgeView<M, G> where
M: Send,
M: Send,
impl<M, G> Sync for EdgeView<M, G> where
M: Sync,
M: Sync,
impl<M, G> Unpin for EdgeView<M, G> where
M: Unpin,
M: Unpin,
impl<M, G> UnwindSafe for EdgeView<M, G> where
M: UnwindSafe,
M: UnwindSafe,
impl<M, G> RefUnwindSafe for EdgeView<M, G> where
M: RefUnwindSafe,
M: RefUnwindSafe,
Blanket Implementations
impl<T> FromGeometry<T> for T
[src]
fn from_geometry(T) -> T
[src]
impl<T, U> IntoGeometry<U> for T where
U: FromGeometry<T>,
[src]
U: FromGeometry<T>,
fn into_geometry(Self) -> U
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,