pub struct StdlibFn(pub Arc<dyn Fn(Vec<Value>) -> Result<Value, StdlibError> + Send + Sync>);Expand description
A callable function value for higher-order stdlib operations.
Wraps an Arc<dyn Fn> so it can be cloned, and provides Debug/PartialEq
implementations that the derive macros can’t auto-generate for dyn Fn.
Tuple Fields§
§0: Arc<dyn Fn(Vec<Value>) -> Result<Value, StdlibError> + Send + Sync>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StdlibFn
impl !RefUnwindSafe for StdlibFn
impl Send for StdlibFn
impl Sync for StdlibFn
impl Unpin for StdlibFn
impl !UnwindSafe for StdlibFn
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