pub enum TraversalDirection {
Outgoing,
Incoming,
Both,
}Expand description
Slice 20 (G5) — direction of graph traversal for
Engine::graph_neighbors / Engine::search_expand.
Outgoing follows edges where the root is the from_id (source).
Incoming follows edges where the root is the to_id (target).
Both follows edges in either direction.
Variants§
Trait Implementations§
Source§impl Clone for TraversalDirection
impl Clone for TraversalDirection
Source§fn clone(&self) -> TraversalDirection
fn clone(&self) -> TraversalDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TraversalDirection
Source§impl Debug for TraversalDirection
impl Debug for TraversalDirection
impl Eq for TraversalDirection
Source§impl PartialEq for TraversalDirection
impl PartialEq for TraversalDirection
Source§fn eq(&self, other: &TraversalDirection) -> bool
fn eq(&self, other: &TraversalDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TraversalDirection
Auto Trait Implementations§
impl Freeze for TraversalDirection
impl RefUnwindSafe for TraversalDirection
impl Send for TraversalDirection
impl Sync for TraversalDirection
impl Unpin for TraversalDirection
impl UnsafeUnpin for TraversalDirection
impl UnwindSafe for TraversalDirection
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