pub struct CustomFunctions { /* private fields */ }Expand description
IRI-keyed map of custom functions.
Implementations§
Source§impl CustomFunctions
impl CustomFunctions
Sourcepub fn with_builtins() -> Self
pub fn with_builtins() -> Self
Registry with the 7 mandatory XSD casts pre-registered.
Sourcepub fn register(&mut self, function: CustomFunction) -> Result<(), ComputeError>
pub fn register(&mut self, function: CustomFunction) -> Result<(), ComputeError>
Register function. Errors on a duplicate IRI.
Sourcepub fn get(&self, iri: &NamedNode) -> Option<&CustomFunction>
pub fn get(&self, iri: &NamedNode) -> Option<&CustomFunction>
Look up by IRI.
Trait Implementations§
Source§impl Clone for CustomFunctions
impl Clone for CustomFunctions
Source§fn clone(&self) -> CustomFunctions
fn clone(&self) -> CustomFunctions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomFunctions
impl Debug for CustomFunctions
Source§impl Default for CustomFunctions
impl Default for CustomFunctions
Source§fn default() -> CustomFunctions
fn default() -> CustomFunctions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CustomFunctions
impl RefUnwindSafe for CustomFunctions
impl Send for CustomFunctions
impl Sync for CustomFunctions
impl Unpin for CustomFunctions
impl UnsafeUnpin for CustomFunctions
impl UnwindSafe for CustomFunctions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].