[−][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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
type NodeId = NodeIndex<Ix>
type EdgeId = EdgeIndex<Ix>
type Weight = E
fn source(&self) -> Self::NodeId
[src]
fn target(&self) -> Self::NodeId
[src]
fn weight(&self) -> &E
[src]
fn id(&self) -> Self::EdgeId
[src]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,