pub struct Function {
pub max_args: Option<usize>,
pub min_args: Option<usize>,
pub compiled: Box<dyn Fn(Vec<Value>) -> Result<Value, Error> + Sync + Send>,
}Expand description
Custom function
Fields
max_args: Option<usize>Maximum number of arguments.
min_args: Option<usize>Minimum number of arguments.
compiled: Box<dyn Fn(Vec<Value>) -> Result<Value, Error> + Sync + Send>Accept values and return a result which contains a value.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more