pub enum SearchQueryAlgorithm {
BreadthFirst,
DepthFirst,
Index,
Elements,
}Expand description
Search algorithm to be used
Variants§
BreadthFirst
Examines each distance level from the search origin in full before continuing with the next level. E.g. when starting at a node it first examines all the edges and then nodes they lead to.
DepthFirst
Examines maximum distance it can reach following every element.
E.g. when starting at anode it will go edge -> node -> edge -> node
until it reaches dead end or encounters already visited element.
Index
Bypasses the graph traversal and inspects only the index specified as the first condition (key).
Elements
Examines all elements in the database disregarding the graph structure or any relationship between the elements.
Trait Implementations§
Source§impl Clone for SearchQueryAlgorithm
impl Clone for SearchQueryAlgorithm
Source§fn clone(&self) -> SearchQueryAlgorithm
fn clone(&self) -> SearchQueryAlgorithm
Returns a duplicate 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 SearchQueryAlgorithm
impl Debug for SearchQueryAlgorithm
Source§impl PartialEq for SearchQueryAlgorithm
impl PartialEq for SearchQueryAlgorithm
Source§impl Serialize for SearchQueryAlgorithm
impl Serialize for SearchQueryAlgorithm
impl Copy for SearchQueryAlgorithm
impl StructuralPartialEq for SearchQueryAlgorithm
Auto Trait Implementations§
impl Freeze for SearchQueryAlgorithm
impl RefUnwindSafe for SearchQueryAlgorithm
impl Send for SearchQueryAlgorithm
impl Sync for SearchQueryAlgorithm
impl Unpin for SearchQueryAlgorithm
impl UnsafeUnpin for SearchQueryAlgorithm
impl UnwindSafe for SearchQueryAlgorithm
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