Enum rs_graph::adapters::network::NetworkEdge [−][src]
pub enum NetworkEdge<E> {
Forward(E),
Backward(E),
}A network edge.
This is either the forward or the backward edge of the original edge.
Variants
Implementations
impl<E> NetworkEdge<E> where
E: Clone + Eq, [src]
impl<E> NetworkEdge<E> where
E: Clone + Eq, [src]pub fn is_forward(&self) -> bool[src]
pub fn is_forward(&self) -> bool[src]Return true if this is the forward edge.
pub fn is_backward(&self) -> bool[src]
pub fn is_backward(&self) -> bool[src]Return true if this is the backward edge.
pub fn is_reverse(&self, e: Self) -> bool[src]
pub fn is_reverse(&self, e: Self) -> bool[src]Return true if e is the reverse edge of self.
pub fn forward(&self) -> Self[src]
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.
Trait Implementations
impl<E: Clone> Clone for NetworkEdge<E>[src]
impl<E: Clone> Clone for NetworkEdge<E>[src]fn clone(&self) -> NetworkEdge<E>[src]
fn clone(&self) -> NetworkEdge<E>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<E: PartialEq> PartialEq<NetworkEdge<E>> for NetworkEdge<E>[src]
impl<E: PartialEq> PartialEq<NetworkEdge<E>> for NetworkEdge<E>[src]fn eq(&self, other: &NetworkEdge<E>) -> bool[src]
fn eq(&self, other: &NetworkEdge<E>) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &NetworkEdge<E>) -> bool[src]
fn ne(&self, other: &NetworkEdge<E>) -> bool[src]This method tests for !=.
impl<E: Copy> Copy for NetworkEdge<E>[src]
impl<E: Eq> Eq for NetworkEdge<E>[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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more