[][src]Struct petgraph::stable_graph::EdgeReference

pub struct EdgeReference<'a, E: 'a, Ix = DefaultIx> { /* fields omitted */ }

Reference to a StableGraph edge.

Methods

impl<'a, Ix, E> EdgeReference<'a, E, Ix> where
    Ix: IndexType
[src]

pub fn weight(&self) -> &'a E[src]

Access the edge’s weight.

NOTE that this method offers a longer lifetime than the trait (unfortunately they don't match yet).

Trait Implementations

impl<'a, E, Ix: IndexType> Clone for EdgeReference<'a, E, Ix>[src]

impl<'a, E, Ix: IndexType> Copy for EdgeReference<'a, E, Ix>[src]

impl<'a, E: Debug + 'a, Ix: Debug> Debug for EdgeReference<'a, E, Ix>[src]

impl<'a, Ix, E> EdgeRef for EdgeReference<'a, E, Ix> where
    Ix: IndexType
[src]

type NodeId = NodeIndex<Ix>

type EdgeId = EdgeIndex<Ix>

type Weight = E

impl<'a, E, Ix: IndexType> PartialEq<EdgeReference<'a, E, Ix>> for EdgeReference<'a, E, Ix> where
    E: PartialEq
[src]

Auto Trait Implementations

impl<'a, E, Ix> RefUnwindSafe for EdgeReference<'a, E, Ix> where
    E: RefUnwindSafe,
    Ix: RefUnwindSafe

impl<'a, E, Ix> Send for EdgeReference<'a, E, Ix> where
    E: Sync,
    Ix: Send

impl<'a, E, Ix> Sync for EdgeReference<'a, E, Ix> where
    E: Sync,
    Ix: Sync

impl<'a, E, Ix> Unpin for EdgeReference<'a, E, Ix> where
    Ix: Unpin

impl<'a, E, Ix> UnwindSafe for EdgeReference<'a, E, Ix> where
    E: RefUnwindSafe,
    Ix: UnwindSafe

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, U> Into<U> for T where
    U: From<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.