[−][src]Struct petgraph::graph::EdgeReference
Reference to a Graph
edge.
Implementations
impl<'a, Ix, E> EdgeReference<'a, E, Ix> where
Ix: IndexType,
[src][−]
Ix: IndexType,
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][+]
Ix: IndexType,
impl<'a, E, Ix: IndexType> PartialEq<EdgeReference<'a, E, Ix>> for EdgeReference<'a, E, Ix> where
E: PartialEq,
[src][+]
E: PartialEq,
Auto Trait Implementations
impl<'a, E, Ix> RefUnwindSafe for EdgeReference<'a, E, Ix> where
E: RefUnwindSafe,
Ix: RefUnwindSafe,
E: RefUnwindSafe,
Ix: RefUnwindSafe,
impl<'a, E, Ix> Send for EdgeReference<'a, E, Ix> where
E: Sync,
Ix: Send,
E: Sync,
Ix: Send,
impl<'a, E, Ix> Sync for EdgeReference<'a, E, Ix> where
E: Sync,
Ix: Sync,
E: Sync,
Ix: Sync,
impl<'a, E, Ix> Unpin for EdgeReference<'a, E, Ix> where
Ix: Unpin,
Ix: Unpin,
impl<'a, E, Ix> UnwindSafe for EdgeReference<'a, E, Ix> where
E: RefUnwindSafe,
Ix: UnwindSafe,
E: RefUnwindSafe,
Ix: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,