[−][src]Struct petgraph::graph::Edge
The graph's edge type.
Fields
weight: E
Associated edge data.
Implementations
impl<E, Ix: IndexType> Edge<E, Ix>
[src]
pub fn next_edge(&self, dir: Direction) -> EdgeIndex<Ix>
[src]
Accessor for data structure internals: the next edge for the given direction.
pub fn source(&self) -> NodeIndex<Ix>
[src]
Return the source node index.
pub fn target(&self) -> NodeIndex<Ix>
[src]
Return the target node index.
Trait Implementations
impl<E, Ix> Clone for Edge<E, Ix> where
E: Clone,
Ix: Copy,
[src]
E: Clone,
Ix: Copy,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Debug, Ix: Debug> Debug for Edge<E, Ix>
[src]
Auto Trait Implementations
impl<E, Ix> RefUnwindSafe for Edge<E, Ix> where
E: RefUnwindSafe,
Ix: RefUnwindSafe,
E: RefUnwindSafe,
Ix: RefUnwindSafe,
impl<E, Ix> Send for Edge<E, Ix> where
E: Send,
Ix: Send,
E: Send,
Ix: Send,
impl<E, Ix> Sync for Edge<E, Ix> where
E: Sync,
Ix: Sync,
E: Sync,
Ix: Sync,
impl<E, Ix> Unpin for Edge<E, Ix> where
E: Unpin,
Ix: Unpin,
E: Unpin,
Ix: Unpin,
impl<E, Ix> UnwindSafe for Edge<E, Ix> where
E: UnwindSafe,
Ix: UnwindSafe,
E: UnwindSafe,
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>,