pub enum StepFilter {
Any,
EdgeType(EdgeType),
EdgeTypes(Vec<EdgeType>),
Custom(String),
}Expand description
A filter for edges in a path step.
Variants§
Any
Match any edge.
EdgeType(EdgeType)
Match edges of a specific type.
EdgeTypes(Vec<EdgeType>)
Match edges of any of these types.
Custom(String)
Custom filter with a predicate function. Note: This variant stores a descriptive string for debugging.
Implementations§
Source§impl StepFilter
impl StepFilter
Sourcepub fn edge_type(edge_type: impl Into<EdgeType>) -> Self
pub fn edge_type(edge_type: impl Into<EdgeType>) -> Self
Create a filter for a specific edge type.
Sourcepub fn edge_types(types: impl IntoIterator<Item = EdgeType>) -> Self
pub fn edge_types(types: impl IntoIterator<Item = EdgeType>) -> Self
Create a filter for multiple edge types.
Trait Implementations§
Source§impl Clone for StepFilter
impl Clone for StepFilter
Source§fn clone(&self) -> StepFilter
fn clone(&self) -> StepFilter
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 StepFilter
impl Debug for StepFilter
Source§impl Default for StepFilter
impl Default for StepFilter
Source§impl From<&str> for StepFilter
impl From<&str> for StepFilter
Auto Trait Implementations§
impl Freeze for StepFilter
impl RefUnwindSafe for StepFilter
impl Send for StepFilter
impl Sync for StepFilter
impl Unpin for StepFilter
impl UnsafeUnpin for StepFilter
impl UnwindSafe for StepFilter
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