[][src]Struct plexus::graph::EdgeView

pub struct EdgeView<M, G> where
    M: Reborrow,
    M::Target: AsStorage<EdgePayload<G>>,
    G: GraphGeometry
{ /* fields omitted */ }

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]

pub fn key(&self) -> EdgeKey[src]

Gets the key for the edge.

impl<'a, M, G> EdgeView<&'a mut M, G> where
    M: 'a + AsStorage<EdgePayload<G>> + AsStorageMut<EdgePayload<G>>,
    G: 'a + GraphGeometry
[src]

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]

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]

pub fn midpoint(&self) -> VertexPosition<G> where
    G: EdgeMidpoint,
    G::Vertex: AsPosition
[src]

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]

impl<M, G> PayloadBinding for EdgeView<M, G> where
    M: Reborrow,
    M::Target: AsStorage<EdgePayload<G>>,
    G: GraphGeometry
[src]

type Key = EdgeKey

type Payload = EdgePayload<G>

impl<M, G> Clone for EdgeView<M, G> where
    M: Reborrow,
    M::Target: AsStorage<EdgePayload<G>>,
    G: GraphGeometry,
    View<M, EdgePayload<G>>: Clone
[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]

impl<M, G> PartialEq<EdgeView<M, G>> for EdgeView<M, G> where
    M: Reborrow,
    M::Target: AsStorage<EdgePayload<G>> + Consistent,
    G: GraphGeometry
[src]

impl<M, G> Deref for EdgeView<M, G> where
    M: Reborrow,
    M::Target: AsStorage<EdgePayload<G>>,
    G: GraphGeometry
[src]

type Target = EdgePayload<G>

The resulting type after dereferencing.

impl<M, G> DerefMut for EdgeView<M, G> where
    M: Reborrow + ReborrowMut,
    M::Target: AsStorage<EdgePayload<G>> + AsStorageMut<EdgePayload<G>>,
    G: GraphGeometry
[src]

Auto Trait Implementations

impl<M, G> Send for EdgeView<M, G> where
    M: Send

impl<M, G> Sync for EdgeView<M, G> where
    M: Sync

impl<M, G> Unpin for EdgeView<M, G> where
    M: Unpin

impl<M, G> UnwindSafe for EdgeView<M, G> where
    M: UnwindSafe

impl<M, G> RefUnwindSafe for EdgeView<M, G> where
    M: RefUnwindSafe

Blanket Implementations

impl<T> FromGeometry<T> for T[src]

impl<T, U> IntoGeometry<U> for T where
    U: FromGeometry<T>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Slottable for T where
    T: Copy
[src]