pub struct FunctionRegistry<'a> {
pub native_functions: HashMap<String, NativeFunction<'a>>,
pub expression_functions: HashMap<String, ExpressionFunction>,
pub user_functions: HashMap<String, UserFunction>,
}
Expand description
Registry for different types of functions available in an evaluation context.
This struct holds three types of functions:
- Native functions: Rust functions that can be called from expressions
- Expression functions: Functions defined using expression strings
- User functions: Functions defined by the user with custom behavior
This is an internal implementation detail and users typically don’t interact with it directly.
Fields§
§native_functions: HashMap<String, NativeFunction<'a>>
Native functions implemented in Rust code
expression_functions: HashMap<String, ExpressionFunction>
Functions defined using expression strings
user_functions: HashMap<String, UserFunction>
User-defined functions with custom behavior
Trait Implementations§
Source§impl<'a> Clone for FunctionRegistry<'a>
impl<'a> Clone for FunctionRegistry<'a>
Source§fn clone(&self) -> FunctionRegistry<'a>
fn clone(&self) -> FunctionRegistry<'a>
Returns a copy 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<'a> Default for FunctionRegistry<'a>
impl<'a> Default for FunctionRegistry<'a>
Source§fn default() -> FunctionRegistry<'a>
fn default() -> FunctionRegistry<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for FunctionRegistry<'a>
impl<'a> !RefUnwindSafe for FunctionRegistry<'a>
impl<'a> !Send for FunctionRegistry<'a>
impl<'a> !Sync for FunctionRegistry<'a>
impl<'a> Unpin for FunctionRegistry<'a>
impl<'a> !UnwindSafe for FunctionRegistry<'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