pub struct PathStepConfig {
pub direction: Direction,
pub edge_types: Vec<EdgeType>,
pub min_hops: usize,
pub max_hops: Option<usize>,
}Expand description
Configuration for a single step in a path pattern.
Fields§
§direction: DirectionDirection to traverse.
edge_types: Vec<EdgeType>Edge type filters (empty means any).
min_hops: usizeMinimum number of hops.
max_hops: Option<usize>Maximum number of hops (None for unlimited).
Implementations§
Source§impl PathStepConfig
impl PathStepConfig
Sourcepub fn to_path_step(&self) -> PathStep
pub fn to_path_step(&self) -> PathStep
Convert to a PathStep for the traversal module.
Trait Implementations§
Source§impl Clone for PathStepConfig
impl Clone for PathStepConfig
Source§fn clone(&self) -> PathStepConfig
fn clone(&self) -> PathStepConfig
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 Freeze for PathStepConfig
impl RefUnwindSafe for PathStepConfig
impl Send for PathStepConfig
impl Sync for PathStepConfig
impl Unpin for PathStepConfig
impl UnwindSafe for PathStepConfig
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