pub struct NoOpObserver {}

Trait Implementations§

source§

impl CompilerObserver for NoOpObserver

source§

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>)

Called when the compiler finishes compilation of a user-defined function. Read more
source§

fn observe_compiled_thunk(&mut self, _: &Rc<Lambda>)

Called when the compiler finishes compilation of a thunk.
source§

impl Default for NoOpObserver

source§

fn default() -> NoOpObserver

Returns the “default value” for a type. Read more
source§

impl RuntimeObserver for NoOpObserver

source§

fn observe_enter_call_frame( &mut self, _arg_count: usize, _: &Rc<Lambda>, _call_depth: usize )

Called when the runtime enters a new call frame.
source§

fn observe_exit_call_frame(&mut self, _frame_at: usize, _stack: &[Value])

Called when the runtime exits a call frame.
source§

fn observe_suspend_call_frame(&mut self, _frame_at: usize, _stack: &[Value])

Called when the runtime suspends a call frame.
source§

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] )

Called when the runtime exits a generator frame.
source§

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)

Called when a generator requests an action from the VM.
source§

fn observe_tail_call(&mut self, _frame_at: usize, _: &Rc<Lambda>)

Called when the runtime replaces the current call frame for a tail call.
source§

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])

Called when the runtime exits a builtin.
source§

fn observe_execute_op(&mut self, _ip: CodeIdx, _: &OpCode, _: &[Value])

Called when the runtime begins executing an instruction. The provided stack is the state at the beginning of the operation.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V