pub enum VertexPredicate {
LabelEq(String),
PropertyEq {
key: String,
value: Value,
},
PropertyExists(String),
All(Vec<VertexPredicate>),
Custom(Arc<dyn Fn(&Vertex) -> bool + Send + Sync>),
}Expand description
Predicate over a vertex.
Variants§
LabelEq(String)
vertex.label == label.
PropertyEq
vertex.properties[key] == value.
PropertyExists(String)
Property is present (any value).
All(Vec<VertexPredicate>)
Conjunction of nested predicates (n-ary AND).
Custom(Arc<dyn Fn(&Vertex) -> bool + Send + Sync>)
User-supplied predicate. Carried by Arc so the pattern stays
Clone; the closure is shared by reference across clones.
Implementations§
Trait Implementations§
Source§impl Clone for VertexPredicate
impl Clone for VertexPredicate
Source§fn clone(&self) -> VertexPredicate
fn clone(&self) -> VertexPredicate
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for VertexPredicate
impl !UnwindSafe for VertexPredicate
impl Freeze for VertexPredicate
impl Send for VertexPredicate
impl Sync for VertexPredicate
impl Unpin for VertexPredicate
impl UnsafeUnpin for VertexPredicate
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