pub struct VertexMatch<'a> {
pub graph: &'a str,
pub label: Option<&'a str>,
pub predicate: Option<VertexPredicate>,
pub score: f64,
}Expand description
Single-vertex Match: every vertex in graph whose label matches and
whose predicates all hold. Useful as a Cypher-style anchor.
Fields§
§graph: &'a str§label: Option<&'a str>§predicate: Option<VertexPredicate>§score: f64Implementations§
Source§impl<'a> VertexMatch<'a>
impl<'a> VertexMatch<'a>
pub fn new(graph: &'a str) -> Self
pub fn label(self, label: &'a str) -> Self
pub fn predicate(self, p: VertexPredicate) -> Self
pub fn execute<G: GraphStore>( &self, store: &G, ) -> GraphStoreResult<GraphPostingList>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for VertexMatch<'a>
impl<'a> !UnwindSafe for VertexMatch<'a>
impl<'a> Freeze for VertexMatch<'a>
impl<'a> Send for VertexMatch<'a>
impl<'a> Sync for VertexMatch<'a>
impl<'a> Unpin for VertexMatch<'a>
impl<'a> UnsafeUnpin for VertexMatch<'a>
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