Skip to main content

EdgePredicate

Trait EdgePredicate 

Source
pub trait EdgePredicate: Send + Sync {
    // Required method
    fn matches(&self, target: u64, edge_id: u64, label_id: LabelId) -> bool;
}
Expand description

Trait for predicate pushdown filtering in CsrSnapshot.

Implementations evaluate whether an edge should be included in traversal results directly at the CSR level, avoiding materialisation of non-matching edges.

Required Methods§

Source

fn matches(&self, target: u64, edge_id: u64, label_id: LabelId) -> bool

Returns true if the edge (target, edge_id, label_id) should be included in the result set.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§