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,
source§impl<'a, E, Ix: IndexType> PartialEq<EdgeReference<'a, E, Ix>> for EdgeReference<'a, E, Ix>where
E: PartialEq,
impl<'a, E, Ix: IndexType> PartialEq<EdgeReference<'a, E, Ix>> for EdgeReference<'a, E, Ix>where E: PartialEq,
impl<'a, E, Ix: IndexType> Copy for EdgeReference<'a, E, Ix>
Auto Trait Implementations§
impl<'a, E, Ix> RefUnwindSafe for EdgeReference<'a, E, Ix>where E: RefUnwindSafe, Ix: RefUnwindSafe,
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,
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