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

pub struct EdgeView<B> where
    B: Reborrow,
    B::Target: AsStorage<Edge<<B::Target as Geometric>::Geometry>> + Geometric, 
{ /* fields omitted */ }

View of an edge entity.

Exposes references to an edge entity and provides the primary edge API. An edge connecting a vertex $A$ and a vertex $B$ is notated $\overleftrightarrow{AB}$ or $\overleftrightarrow{BA}$.

See the module documentation for more information about views.

Implementations

impl<B, M> EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Edge<<B as Geometric>::Geometry>> + Geometric, 
[src]

pub fn to_ref(&self) -> EdgeView<&M>[src]

impl<'a, B, M, G> EdgeView<B> where
    B: ReborrowInto<'a, Target = M>,
    M: AsStorage<Edge<G>> + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

pub fn into_ref(self) -> EdgeView<&'a M>[src]

impl<B, M, G> EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Consistent + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

pub fn into_arc(self) -> ArcView<B>[src]

pub fn arc(&self) -> ArcView<&M>[src]

pub fn is_boundary_edge(&self) -> bool[src]

impl<B, M, G> EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + AsStorage<Vertex<G>> + Consistent + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

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

Trait Implementations

impl<B, M, G> Clone for EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Edge<G>> + Geometric<Geometry = G>,
    G: GraphGeometry,
    View<B, Edge<G>>: Clone
[src]

impl<B, M, G> ClosedView for EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Edge<G>> + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

type Key = EdgeKey

type Entity = Edge<G>

fn key(&self) -> Self::Key[src]

Gets the key for the edge.

impl<B, M, G> Copy for EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Edge<G>> + Geometric<Geometry = G>,
    G: GraphGeometry,
    View<B, Edge<G>>: Copy
[src]

impl<B, M, G> Deref for EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Edge<G>> + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

type Target = Edge<G>

The resulting type after dereferencing.

impl<B, M, G> DerefMut for EdgeView<B> where
    B: ReborrowMut<Target = M>,
    M: AsStorageMut<Edge<G>> + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

impl<'a, M, G> From<EdgeView<&'a mut M>> for EdgeOrphan<'a, G> where
    M: AsStorageMut<Edge<G>> + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

impl<B, M, G> PartialEq<EdgeView<B>> for EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Edge<G>> + Consistent + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

impl<B, M, G> ToArc<B> for EdgeView<B> where
    B: Reborrow<Target = M>,
    M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Consistent + Geometric<Geometry = G>,
    G: GraphGeometry
[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for EdgeView<B> where
    B: RefUnwindSafe,
    <<B as Reborrow>::Target as Geometric>::Geometry: GraphGeometry

impl<B> Send for EdgeView<B> where
    B: Send,
    <<B as Reborrow>::Target as Geometric>::Geometry: GraphGeometry

impl<B> Sync for EdgeView<B> where
    B: Sync,
    <<B as Reborrow>::Target as Geometric>::Geometry: GraphGeometry

impl<B> Unpin for EdgeView<B> where
    B: Unpin,
    <<B as Reborrow>::Target as Geometric>::Geometry: GraphGeometry

impl<B> UnwindSafe for EdgeView<B> where
    B: UnwindSafe,
    <<B as Reborrow>::Target as Geometric>::Geometry: GraphGeometry

Blanket Implementations

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

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,