pub struct TraversalSpec {
pub name: &'static str,
pub summary: &'static str,
pub networkx: Option<&'static str>,
pub params: &'static [TraversalParam],
pub outputs: &'static [TraversalOutput],
}Expand description
One traversal.
Fields§
§name: &'static str§summary: &'static strOne line on what it returns.
networkx: Option<&'static str>The NetworkX call it matches, as docs/semantics.md pins it.
params: &'static [TraversalParam]The parameters besides the graph, in SQL’s order: the node ids first.
outputs: &'static [TraversalOutput]Implementations§
Source§impl TraversalSpec
impl TraversalSpec
Sourcepub fn param(&self, name: &str) -> Option<&'static TraversalParam>
pub fn param(&self, name: &str) -> Option<&'static TraversalParam>
The parameter called name.
Sourcepub fn node_params(&self) -> impl Iterator<Item = &'static TraversalParam>
pub fn node_params(&self) -> impl Iterator<Item = &'static TraversalParam>
The parameters that take node ids, in order: each is one child plan of the traversal node.
Sourcepub fn directions(&self) -> &'static [&'static str]
pub fn directions(&self) -> &'static [&'static str]
The directions the traversal accepts; empty for one without a
direction parameter.
Trait Implementations§
Auto Trait Implementations§
impl Forget for TraversalSpec
impl Freeze for TraversalSpec
impl RefUnwindSafe for TraversalSpec
impl Send for TraversalSpec
impl Sync for TraversalSpec
impl Unpin for TraversalSpec
impl UnsafeUnpin for TraversalSpec
impl UnwindSafe for TraversalSpec
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more