[−][src]Enum rs_graph::adapters::network::NetworkEdge
A network edge.
This is either the forward or the backward edge of the original edge.
Variants
Methods
impl<E> NetworkEdge<E> where
E: Clone + Eq,
[src]
E: Clone + Eq,
pub fn new(e: E) -> Self
[src]
Return the forward edge corresponding to the given underlying edge.
pub fn is_forward(&self) -> bool
[src]
Return true
if this is the forward edge.
pub fn is_backward(&self) -> bool
[src]
Return true
if this is the backward edge.
pub fn is_reverse(&self, e: Self) -> bool
[src]
Return true
if e
is the reverse edge of self
.
pub fn reverse(&self) -> Self
[src]
Return the reverse edge of this edge.
pub fn forward(&self) -> Self
[src]
Return the forward edge of self
.
If this is already the forward edge then self
is returned and
self.reverse()
otherwise.
pub fn backward(&self) -> Self
[src]
Return the backward edge of self
.
If this is already the backward edge then self
is returned and
self.reverse()
otherwise.
pub fn edge(&self) -> E
[src]
Return the edge of the underlying graph.
Trait Implementations
impl<E: Clone> Clone for NetworkEdge<E>
[src]
fn clone(&self) -> NetworkEdge<E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Copy> Copy for NetworkEdge<E>
[src]
impl<E: Eq> Eq for NetworkEdge<E>
[src]
impl<E> Indexable for NetworkEdge<E> where
E: Indexable,
[src]
E: Indexable,
impl<E: PartialEq> PartialEq<NetworkEdge<E>> for NetworkEdge<E>
[src]
fn eq(&self, other: &NetworkEdge<E>) -> bool
[src]
fn ne(&self, other: &NetworkEdge<E>) -> bool
[src]
impl<E> StructuralEq for NetworkEdge<E>
[src]
impl<E> StructuralPartialEq for NetworkEdge<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for NetworkEdge<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for NetworkEdge<E> where
E: Send,
E: Send,
impl<E> Sync for NetworkEdge<E> where
E: Sync,
E: Sync,
impl<E> Unpin for NetworkEdge<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for NetworkEdge<E> where
E: UnwindSafe,
E: 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>,