pub struct VertexStep { /* private fields */ }Expand description
Generic vertex step - traverses edges to adjacent vertices
Implementations§
Source§impl VertexStep
impl VertexStep
Sourcepub fn out(edge_labels: Vec<String>) -> VertexStep
pub fn out(edge_labels: Vec<String>) -> VertexStep
Create out() step
Sourcepub fn in_(edge_labels: Vec<String>) -> VertexStep
pub fn in_(edge_labels: Vec<String>) -> VertexStep
Create in() step
Sourcepub fn both(edge_labels: Vec<String>) -> VertexStep
pub fn both(edge_labels: Vec<String>) -> VertexStep
Create both() step
Sourcepub fn out_e(edge_labels: Vec<String>) -> VertexStep
pub fn out_e(edge_labels: Vec<String>) -> VertexStep
Create outE() step
Sourcepub fn in_e(edge_labels: Vec<String>) -> VertexStep
pub fn in_e(edge_labels: Vec<String>) -> VertexStep
Create inE() step
Sourcepub fn both_e(edge_labels: Vec<String>) -> VertexStep
pub fn both_e(edge_labels: Vec<String>) -> VertexStep
Create bothE() step
Sourcepub fn edge_labels(&self) -> &[String]
pub fn edge_labels(&self) -> &[String]
Get edge labels
Sourcepub fn returns_edges(&self) -> bool
pub fn returns_edges(&self) -> bool
Check if returning edges
Sourcepub fn with_id(self, id: String) -> VertexStep
pub fn with_id(self, id: String) -> VertexStep
Set step ID
Trait Implementations§
Source§impl Clone for VertexStep
impl Clone for VertexStep
Source§fn clone(&self) -> VertexStep
fn clone(&self) -> VertexStep
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 moreSource§impl Debug for VertexStep
impl Debug for VertexStep
Source§impl FlatMapStep for VertexStep
impl FlatMapStep for VertexStep
Source§impl Step for VertexStep
impl Step for VertexStep
Source§fn requirements(&self) -> &[TraverserRequirement]
fn requirements(&self) -> &[TraverserRequirement]
Requirements this step declares
Source§fn process_traverser(&self, traverser: Traverser) -> StepResult
fn process_traverser(&self, traverser: Traverser) -> StepResult
Process a single traverser (standard algorithm)
Source§fn clone_step(&self) -> Box<dyn Step>
fn clone_step(&self) -> Box<dyn Step>
Clone as trait object
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Downcast to mutable concrete type
Auto Trait Implementations§
impl Forget for VertexStep
impl Freeze for VertexStep
impl Move for VertexStep
impl RefUnwindSafe for VertexStep
impl Send for VertexStepwhere
RawVecInner: Send,
impl Sync for VertexStepwhere
RawVecInner: Sync,
impl Unpin for VertexStep
impl UnsafeUnpin for VertexStepwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for VertexStepwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request