pub struct DefaultFuncallHandler;
Expand description
Default function call handler
Trait Implementations§
Source§impl FuncallHandler for DefaultFuncallHandler
impl FuncallHandler for DefaultFuncallHandler
Source§fn call_function(
&mut self,
_context: &mut Context,
_func: JsonnetValue,
_args: Vec<JsonnetValue>,
) -> Result<JsonnetValue>
fn call_function( &mut self, _context: &mut Context, _func: JsonnetValue, _args: Vec<JsonnetValue>, ) -> Result<JsonnetValue>
Call a function with given arguments
Source§fn is_builtin_function(&self, name: &str) -> bool
fn is_builtin_function(&self, name: &str) -> bool
Check if a function name refers to a builtin function
Source§fn call_builtin_function(
&mut self,
_context: &mut Context,
name: &str,
args: Vec<JsonnetValue>,
) -> Result<JsonnetValue>
fn call_builtin_function( &mut self, _context: &mut Context, name: &str, args: Vec<JsonnetValue>, ) -> Result<JsonnetValue>
Call a builtin function
Source§fn is_external_function(&self, name: &str) -> bool
fn is_external_function(&self, name: &str) -> bool
Check if a function name refers to an external function
Source§fn call_external_function(
&mut self,
_context: &mut Context,
name: &str,
_args: Vec<JsonnetValue>,
) -> Result<JsonnetValue>
fn call_external_function( &mut self, _context: &mut Context, name: &str, _args: Vec<JsonnetValue>, ) -> Result<JsonnetValue>
Call an external function (HTTP, AI API, system commands, etc.)
Auto Trait Implementations§
impl Freeze for DefaultFuncallHandler
impl RefUnwindSafe for DefaultFuncallHandler
impl Send for DefaultFuncallHandler
impl Sync for DefaultFuncallHandler
impl Unpin for DefaultFuncallHandler
impl UnwindSafe for DefaultFuncallHandler
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