pub struct DefaultOpHandler;
Expand description
Default implementations for handlers Default operation handler with standard Jsonnet semantics
Trait Implementations§
Source§impl OpHandler for DefaultOpHandler
impl OpHandler for DefaultOpHandler
Source§fn eval_binary_op(
&mut self,
_context: &mut Context,
left: JsonnetValue,
op: BinaryOp,
right: JsonnetValue,
) -> Result<JsonnetValue>
fn eval_binary_op( &mut self, _context: &mut Context, left: JsonnetValue, op: BinaryOp, right: JsonnetValue, ) -> Result<JsonnetValue>
Evaluate a binary operation (e.g., 2 + 3, “hello” + “world”)
Source§fn eval_unary_op(
&mut self,
_context: &mut Context,
op: UnaryOp,
_operand: JsonnetValue,
) -> Result<JsonnetValue>
fn eval_unary_op( &mut self, _context: &mut Context, op: UnaryOp, _operand: JsonnetValue, ) -> Result<JsonnetValue>
Evaluate a unary operation (e.g., -5, !true)
Auto Trait Implementations§
impl Freeze for DefaultOpHandler
impl RefUnwindSafe for DefaultOpHandler
impl Send for DefaultOpHandler
impl Sync for DefaultOpHandler
impl Unpin for DefaultOpHandler
impl UnwindSafe for DefaultOpHandler
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