Struct petgraph::adj::EdgeReference [−][src]
A reference to an edge of the graph.
Trait Implementations
impl<'a, E, Ix: IndexType> Clone for EdgeReference<'a, E, Ix>[src]
fn clone(&self) -> Self[src]
pub 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, Ix: Debug + IndexType> Debug for EdgeReference<'a, E, Ix>[src]
impl<'a, E, Ix: IndexType> EdgeRef for EdgeReference<'a, E, Ix>[src]
type NodeId = NodeIndex<Ix>
type EdgeId = EdgeIndex<Ix>
type Weight = E
fn source(&self) -> Self::NodeId[src]
fn target(&self) -> Self::NodeId[src]
fn id(&self) -> Self::EdgeId[src]
fn weight(&self) -> &Self::Weight[src]
impl<'a, E: Eq, Ix: Eq + IndexType> Eq for EdgeReference<'a, E, Ix>[src]
impl<'a, E: Ord, Ix: Ord + IndexType> Ord for EdgeReference<'a, E, Ix>[src]
fn cmp(&self, other: &EdgeReference<'a, E, Ix>) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl<'a, E: PartialEq, Ix: PartialEq + IndexType> PartialEq<EdgeReference<'a, E, Ix>> for EdgeReference<'a, E, Ix>[src]
fn eq(&self, other: &EdgeReference<'a, E, Ix>) -> bool[src]
fn ne(&self, other: &EdgeReference<'a, E, Ix>) -> bool[src]
impl<'a, E: PartialOrd, Ix: PartialOrd + IndexType> PartialOrd<EdgeReference<'a, E, Ix>> for EdgeReference<'a, E, Ix>[src]
fn partial_cmp(&self, other: &EdgeReference<'a, E, Ix>) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'a, E, Ix: IndexType> StructuralEq for EdgeReference<'a, E, Ix>[src]
impl<'a, E, Ix: IndexType> StructuralPartialEq for EdgeReference<'a, E, Ix>[src]
Auto Trait Implementations
impl<'a, E, Ix> RefUnwindSafe for EdgeReference<'a, E, Ix> where
E: RefUnwindSafe,
Ix: RefUnwindSafe, [src]
E: RefUnwindSafe,
Ix: RefUnwindSafe,
impl<'a, E, Ix> Send for EdgeReference<'a, E, Ix> where
E: Sync,
Ix: Send + Sync, [src]
E: Sync,
Ix: Send + Sync,
impl<'a, E, Ix> Sync for EdgeReference<'a, E, Ix> where
E: Sync,
Ix: Sync, [src]
E: Sync,
Ix: Sync,
impl<'a, E, Ix> Unpin for EdgeReference<'a, E, Ix> where
Ix: Unpin, [src]
Ix: Unpin,
impl<'a, E, Ix> UnwindSafe for EdgeReference<'a, E, Ix> where
E: RefUnwindSafe,
Ix: RefUnwindSafe + UnwindSafe, [src]
E: RefUnwindSafe,
Ix: RefUnwindSafe + 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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,