[][src]Struct gll_pg_core::EdgeReference

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

Re-exported petgraph structs to avoid requiring dependency of generated code on it. Reference to a Graph edge.

Methods

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

Re-exported petgraph structs to avoid requiring dependency of generated code on it.

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

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

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

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

Auto Trait Implementations

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

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

Blanket Implementations

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]