Struct petgraph::csr::EdgeReference[][src]

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

Implementations

impl<'a, Ty, E, Ix> EdgeReference<'a, E, Ty, Ix> where
    Ty: EdgeType
[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, Ty, Ix: Copy> Clone for EdgeReference<'a, E, Ty, Ix>[src]

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

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

type NodeId = NodeIndex<Ix>

type EdgeId = EdgeIndex

type Weight = E

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

Auto Trait Implementations

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

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

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

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

impl<'a, E, Ty, Ix> UnwindSafe for EdgeReference<'a, E, Ty, Ix> where
    E: RefUnwindSafe,
    Ix: UnwindSafe,
    Ty: 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> Pointable for T[src]

type Init = T

The type for initializers.

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.