pub enum EdgePredicate {
PropertyEq {
key: String,
value: Value,
},
PropertyExists(String),
All(Vec<EdgePredicate>),
Custom(Arc<dyn Fn(&Edge) -> bool + Send + Sync>),
}Expand description
Predicate over an edge.
Variants§
PropertyEq
edge.properties[key] == value.
PropertyExists(String)
All(Vec<EdgePredicate>)
Custom(Arc<dyn Fn(&Edge) -> bool + Send + Sync>)
Implementations§
Trait Implementations§
Source§impl Clone for EdgePredicate
impl Clone for EdgePredicate
Source§fn clone(&self) -> EdgePredicate
fn clone(&self) -> EdgePredicate
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 EdgePredicate
impl !UnwindSafe for EdgePredicate
impl Freeze for EdgePredicate
impl Send for EdgePredicate
impl Sync for EdgePredicate
impl Unpin for EdgePredicate
impl UnsafeUnpin for EdgePredicate
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