pub struct Functions(pub Option<Arc<FunctionRegistry>>);Expand description
A shared, possibly absent registry: what stores hand to QueryOptions and the frontends’
options. Two handles are equal when they share one registry.
Tuple Fields§
§0: Option<Arc<FunctionRegistry>>Implementations§
Source§impl Functions
impl Functions
pub fn new(registry: FunctionRegistry) -> Self
pub fn registry(&self) -> Option<&FunctionRegistry>
pub fn get(&self, iri: &str) -> Option<&HostFunction>
pub fn by_cypher_name(&self, name: &str) -> Option<&HostFunction>
pub fn is_empty(&self) -> bool
Sourcepub fn install(&self, evaluator: QueryEvaluator) -> QueryEvaluator
pub fn install(&self, evaluator: QueryEvaluator) -> QueryEvaluator
Adds every function to a spareval evaluator.
Trait Implementations§
impl Eq for Functions
Auto Trait Implementations§
impl !RefUnwindSafe for Functions
impl !UnwindSafe for Functions
impl Freeze for Functions
impl Send for Functions
impl Sync for Functions
impl Unpin for Functions
impl UnsafeUnpin for Functions
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