Enum graph_types::EdgeDirection
source · pub enum EdgeDirection {
Disconnect,
TwoWay,
Forward,
Reverse,
}
Expand description
Determines the direction between two nodes
use graph_theory::GraphEngine;
Variants§
Disconnect
Two nodes that are not connected.
TwoWay
This edge is bidirectional
Forward
This edge is unidirectional
Reverse
This edge is unidirectional and goes in the opposite direction
Trait Implementations§
source§impl Clone for EdgeDirection
impl Clone for EdgeDirection
source§fn clone(&self) -> EdgeDirection
fn clone(&self) -> EdgeDirection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EdgeDirection
impl Debug for EdgeDirection
source§impl PartialEq<EdgeDirection> for EdgeDirection
impl PartialEq<EdgeDirection> for EdgeDirection
source§fn eq(&self, other: &EdgeDirection) -> bool
fn eq(&self, other: &EdgeDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EdgeDirection
impl Eq for EdgeDirection
impl StructuralEq for EdgeDirection
impl StructuralPartialEq for EdgeDirection
Auto Trait Implementations§
impl RefUnwindSafe for EdgeDirection
impl Send for EdgeDirection
impl Sync for EdgeDirection
impl Unpin for EdgeDirection
impl UnwindSafe for EdgeDirection
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