pub struct NoOpObserver {}Trait Implementations§
Source§impl CompilerObserver for NoOpObserver
impl CompilerObserver for NoOpObserver
Source§fn observe_compiled_toplevel(&mut self, _: &Rc<Lambda>)
fn observe_compiled_toplevel(&mut self, _: &Rc<Lambda>)
Called when the compiler finishes compilation of the top-level
of an expression (usually the root Nix expression of a file).
Source§fn observe_compiled_lambda(&mut self, _: &Rc<Lambda>)
fn observe_compiled_lambda(&mut self, _: &Rc<Lambda>)
Called when the compiler finishes compilation of a
user-defined function. Read more
Source§fn observe_compiled_thunk(&mut self, _: &Rc<Lambda>)
fn observe_compiled_thunk(&mut self, _: &Rc<Lambda>)
Called when the compiler finishes compilation of a thunk.
Source§impl Default for NoOpObserver
impl Default for NoOpObserver
Source§fn default() -> NoOpObserver
fn default() -> NoOpObserver
Returns the “default value” for a type. Read more
Source§impl RuntimeObserver for NoOpObserver
impl RuntimeObserver for NoOpObserver
Source§fn observe_enter_bytecode_frame(
&mut self,
_arg_count: usize,
_: &Rc<Lambda>,
_call_depth: usize,
)
fn observe_enter_bytecode_frame( &mut self, _arg_count: usize, _: &Rc<Lambda>, _call_depth: usize, )
Called when the runtime enters a new bytecode frame.
Source§fn observe_exit_bytecode_frame(&mut self, _frame_at: usize, _stack: &[Value])
fn observe_exit_bytecode_frame(&mut self, _frame_at: usize, _stack: &[Value])
Called when the runtime exits a bytecode frame.
Source§fn observe_suspend_bytecode_frame(&mut self, _frame_at: usize, _stack: &[Value])
fn observe_suspend_bytecode_frame(&mut self, _frame_at: usize, _stack: &[Value])
Called when the runtime suspends a bytecode frame.
Source§fn observe_enter_generator(
&mut self,
_frame_at: usize,
_name: &str,
_stack: &[Value],
)
fn observe_enter_generator( &mut self, _frame_at: usize, _name: &str, _stack: &[Value], )
Called when the runtime enters a generator frame.
Source§fn observe_exit_generator(
&mut self,
_frame_at: usize,
_name: &str,
_stack: &[Value],
)
fn observe_exit_generator( &mut self, _frame_at: usize, _name: &str, _stack: &[Value], )
Called when the runtime exits a generator frame.
Source§fn observe_suspend_generator(
&mut self,
_frame_at: usize,
_name: &str,
_stack: &[Value],
)
fn observe_suspend_generator( &mut self, _frame_at: usize, _name: &str, _stack: &[Value], )
Called when the runtime suspends a generator frame.
Source§fn observe_generator_request(&mut self, _name: &str, _msg: &VMRequest)
fn observe_generator_request(&mut self, _name: &str, _msg: &VMRequest)
Called when a generator requests an action from the VM.
Source§fn observe_tail_call(&mut self, _frame_at: usize, _: &Rc<Lambda>)
fn observe_tail_call(&mut self, _frame_at: usize, _: &Rc<Lambda>)
Called when the runtime replaces the current bytecode frame for a
tail call.
Source§fn observe_enter_builtin(&mut self, _name: &'static str)
fn observe_enter_builtin(&mut self, _name: &'static str)
Called when the runtime enters a builtin.
Source§fn observe_exit_builtin(&mut self, _name: &'static str, _stack: &[Value])
fn observe_exit_builtin(&mut self, _name: &'static str, _stack: &[Value])
Called when the runtime exits a builtin.
Auto Trait Implementations§
impl Freeze for NoOpObserver
impl RefUnwindSafe for NoOpObserver
impl Send for NoOpObserver
impl Sync for NoOpObserver
impl Unpin for NoOpObserver
impl UnsafeUnpin for NoOpObserver
impl UnwindSafe for NoOpObserver
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more