Struct petgraph::graph_impl::EdgeReference
source · pub struct EdgeReference<'a, E: 'a, Ix = DefaultIx> {
index: EdgeIndex<Ix>,
node: [NodeIndex<Ix>; 2],
weight: &'a E,
}
Expand description
Reference to a Graph
edge.
Fields§
§index: EdgeIndex<Ix>
§node: [NodeIndex<Ix>; 2]
§weight: &'a E
Implementations§
Trait Implementations§
source§impl<'a, E, Ix: IndexType> Clone for EdgeReference<'a, E, Ix>
impl<'a, E, Ix: IndexType> Clone for EdgeReference<'a, E, Ix>
source§impl<'a, Ix, E> EdgeRef for EdgeReference<'a, E, Ix>where
Ix: IndexType,
impl<'a, Ix, E> EdgeRef for EdgeReference<'a, E, Ix>where
Ix: IndexType,
impl<'a, E, Ix: IndexType> Copy for EdgeReference<'a, E, Ix>
Auto Trait Implementations§
impl<'a, E, Ix> Freeze for EdgeReference<'a, E, Ix>where
Ix: Freeze,
impl<'a, E, Ix> RefUnwindSafe for EdgeReference<'a, E, Ix>where
Ix: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, E, Ix> Send for EdgeReference<'a, E, Ix>
impl<'a, E, Ix> Sync for EdgeReference<'a, E, Ix>
impl<'a, E, Ix> Unpin for EdgeReference<'a, E, Ix>where
Ix: Unpin,
impl<'a, E, Ix> UnwindSafe for EdgeReference<'a, E, Ix>where
Ix: UnwindSafe,
E: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more