pub enum Callable {
Dynamic(Box<dyn for<'e> Fn(&'e [Value]) -> RuntimeResult<Value>>),
Static {
arguments: Vec<Arg>,
compile: Box<dyn for<'c> Fn(&mut Staging<'c, Value>) -> TemplateResult<CompiledExpression>>,
},
}
Expand description
Callable implementation.
Variants§
Dynamic(Box<dyn for<'e> Fn(&'e [Value]) -> RuntimeResult<Value>>)
Executable at runtime.
Static
Inlined into instructions at compile time.
Fields
§
compile: Box<dyn for<'c> Fn(&mut Staging<'c, Value>) -> TemplateResult<CompiledExpression>>
Auto Trait Implementations§
impl Freeze for Callable
impl !RefUnwindSafe for Callable
impl !Send for Callable
impl !Sync for Callable
impl Unpin for Callable
impl !UnwindSafe for Callable
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