pub struct GraphTraversal<S, E: FromGValue, T: Terminator<E>> { /* private fields */ }Implementations§
Source§impl<S, E: FromGValue, T: Terminator<E>> GraphTraversal<S, E, T>
impl<S, E: FromGValue, T: Terminator<E>> GraphTraversal<S, E, T>
pub fn new(terminator: T, builder: TraversalBuilder) -> GraphTraversal<S, E, T>
pub fn does_write(&self) -> bool
pub fn bytecode(&self) -> &Bytecode
pub fn has_label<L>(self, labels: L) -> Self
pub fn add_v<A>(self, label: A) -> GraphTraversal<Vertex, Vertex, T>
pub fn property<A>(self, key: &str, value: A) -> Self
pub fn property_with_cardinality<A>( self, cardinality: Cardinality, key: &str, value: A, ) -> Self
pub fn property_many<A>(self, values: Vec<(&str, A)>) -> Self
pub fn property_many_with_cardinality<A>( self, values: Vec<(Cardinality, String, A)>, ) -> Self
pub fn has<A>(self, step: A) -> Self
pub fn has_many<A>(self, steps: Vec<A>) -> Self
pub fn has_not<A>(self, key: A) -> Self
pub fn has_key<A>(self, key: A) -> Self
pub fn as_<A>(self, alias: A) -> Self
pub fn with_side_effect<A>(self, step: (&'static str, A)) -> Self
pub fn add_e<A>(self, label: A) -> GraphTraversal<S, Edge, T>
pub fn out<A>(self, labels: A) -> GraphTraversal<S, Vertex, T>
pub fn out_e<A>(self, labels: A) -> GraphTraversal<S, Edge, T>
pub fn out_v(self) -> GraphTraversal<S, Vertex, T>where
T: Terminator<Vertex>,
pub fn in_<A>(self, labels: A) -> GraphTraversal<S, Vertex, T>
pub fn in_e<A>(self, labels: A) -> GraphTraversal<S, Edge, T>
pub fn in_v(self) -> GraphTraversal<S, Vertex, T>where
T: Terminator<Vertex>,
pub fn both<A>(self, labels: A) -> GraphTraversal<S, Vertex, T>
pub fn both_e<A>(self, labels: A) -> GraphTraversal<S, Edge, T>
pub fn other(self) -> GraphTraversal<S, Vertex, T>where
T: Terminator<Vertex>,
pub fn other_v(self) -> GraphTraversal<S, Vertex, T>where
T: Terminator<Vertex>,
pub fn label(self) -> GraphTraversal<S, String, T>where
T: Terminator<String>,
pub fn exec(&self) -> T::Executor
pub fn from<A>(self, target: A) -> Self
pub fn to<A>(self, target: A) -> Self
pub fn properties<L>(self, labels: L) -> GraphTraversal<S, GProperty, T>
pub fn property_map<L>(self, labels: L) -> GraphTraversal<S, Map, T>
pub fn values<L>(self, labels: L) -> GraphTraversal<S, GValue, T>
pub fn value_map<L>(self, labels: L) -> GraphTraversal<S, Map, T>
pub fn element_map<L>(self, labels: L) -> GraphTraversal<S, Map, T>
pub fn count(self) -> GraphTraversal<S, i64, T>where
T: Terminator<i64>,
pub fn group_count(self) -> GraphTraversal<S, Map, T>where
T: Terminator<Map>,
pub fn group_count_as<A>(self, key: A) -> GraphTraversal<S, E, T>
pub fn group(self) -> GraphTraversal<S, Map, T>where
T: Terminator<Map>,
pub fn group_as<A>(self, key: A) -> GraphTraversal<S, E, T>
pub fn by<A>(self, step: A) -> Self
pub fn select<A>(self, step: A) -> GraphTraversal<S, GValue, T>
pub fn fold(self) -> GraphTraversal<S, List, T>where
T: Terminator<List>,
pub fn unfold(self) -> Self
pub fn path(self) -> GraphTraversal<S, Path, T>where
T: Terminator<Path>,
pub fn limit<A>(self, limit: A) -> Self
pub fn dedup<A>(self, dedup: A) -> Self
pub fn sum<A>(self, scope: A) -> GraphTraversal<S, GValue, T>
pub fn max<A>(self, scope: A) -> GraphTraversal<S, GValue, T>
pub fn mean<A>(self, scope: A) -> GraphTraversal<S, GValue, T>
pub fn min<A>(self, scope: A) -> GraphTraversal<S, GValue, T>
pub fn is<A>(self, val: A) -> Selfwhere
A: IntoPredicate,
pub fn where_<A>(self, step: A) -> Self
pub fn not<A>(self, step: A) -> Self
pub fn order<A>(self, scope: A) -> Self
pub fn match_<A>(self, step: A) -> GraphTraversal<S, Map, T>
pub fn drop(self) -> Self
pub fn or<A>(self, step: A) -> Self
pub fn map<A>(self, step: A) -> Self
pub fn project<A>(self, step: A) -> GraphTraversal<S, GValue, T>
pub fn v<VT>(self, ids: VT) -> Self
pub fn repeat<A>(self, step: A) -> Selfwhere
A: Into<RepeatStep>,
pub fn until<A>(self, step: A) -> Self
pub fn simple_path(self) -> Self
pub fn sample(self, step: i32) -> Self
pub fn loops<A>(self, step: A) -> Self
pub fn local<A>(self, step: A) -> Self
pub fn aggregate<A>(self, alias: A) -> Self
pub fn value(self) -> Self
pub fn choose<A>(self, step: A) -> Selfwhere
A: IntoChooseStep,
pub fn coalesce<B, A>(self, colaesce: A) -> GraphTraversal<S, B, T>
pub fn identity(self) -> Self
pub fn range(self, step: i64, step2: i64) -> Self
pub fn cap(self, step: &'static str) -> Self
pub fn barrier(self) -> Self
pub fn optional(self, step: TraversalBuilder) -> Self
pub fn constant<A>(self, value: A) -> Self
pub fn emit(self) -> Self
Trait Implementations§
Source§impl<S: Clone, E: Clone + FromGValue, T: Clone + Terminator<E>> Clone for GraphTraversal<S, E, T>
impl<S: Clone, E: Clone + FromGValue, T: Clone + Terminator<E>> Clone for GraphTraversal<S, E, T>
Source§fn clone(&self) -> GraphTraversal<S, E, T>
fn clone(&self) -> GraphTraversal<S, E, T>
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 moreAuto Trait Implementations§
impl<S, E, T> Freeze for GraphTraversal<S, E, T>where
T: Freeze,
impl<S, E, T> RefUnwindSafe for GraphTraversal<S, E, T>
impl<S, E, T> Send for GraphTraversal<S, E, T>
impl<S, E, T> Sync for GraphTraversal<S, E, T>
impl<S, E, T> Unpin for GraphTraversal<S, E, T>
impl<S, E, T> UnwindSafe for GraphTraversal<S, E, T>
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