intuicio_backend_vm::debugger

Struct PrintDebugger

Source
pub struct PrintDebugger {
    pub source_map: SourceMap<String>,
    pub stack: bool,
    pub stack_bytes: bool,
    pub visit_stack: bool,
    pub registers: bool,
    pub registers_bytes: bool,
    pub visit_registers: bool,
    pub operation_details: bool,
    pub step_through: bool,
    pub mode: PrintDebuggerMode,
    /* private fields */
}

Fields§

§source_map: SourceMap<String>§stack: bool§stack_bytes: bool§visit_stack: bool§registers: bool§registers_bytes: bool§visit_registers: bool§operation_details: bool§step_through: bool§mode: PrintDebuggerMode

Implementations§

Source§

impl PrintDebugger

Source

pub fn full() -> Self

Source

pub fn stack(self, mode: bool) -> Self

Source

pub fn stack_bytes(self, mode: bool) -> Self

Source

pub fn visit_stack(self, mode: bool) -> Self

Source

pub fn registers(self, mode: bool) -> Self

Source

pub fn registers_bytes(self, mode: bool) -> Self

Source

pub fn visit_registers(self, mode: bool) -> Self

Source

pub fn operation_details(self, mode: bool) -> Self

Source

pub fn step_through(self, mode: bool) -> Self

Source

pub fn mode(self, mode: PrintDebuggerMode) -> Self

Source

pub fn printable<T: Debug + 'static>(self) -> Self

Source

pub fn printable_custom<T: 'static>( self, f: impl Fn(&Self, &T) -> String + Send + Sync + 'static, ) -> Self

Source

pub fn printable_raw<T: 'static>( self, f: impl Fn(&Self, *const ()) -> String + Send + Sync + 'static, ) -> Self

Source

pub fn basic_printables(self) -> Self

Source

pub fn display<T>(&self, data: &T) -> Option<(&'static str, String)>

Source

pub fn display_raw( &self, type_hash: TypeHash, pointer: *const (), ) -> Option<(&'static str, String)>

Trait Implementations§

Source§

impl Default for PrintDebugger

Source§

fn default() -> PrintDebugger

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

impl<SE: ScriptExpression + Debug> VmDebugger<SE> for PrintDebugger

Source§

fn on_enter_scope( &mut self, scope: &VmScope<'_, SE>, context: &mut Context, _: &Registry, )

Source§

fn on_exit_scope( &mut self, scope: &VmScope<'_, SE>, context: &mut Context, _: &Registry, )

Source§

fn on_enter_operation( &mut self, scope: &VmScope<'_, SE>, operation: &ScriptOperation<'_, SE>, position: usize, context: &mut Context, _: &Registry, )

Source§

fn on_exit_operation( &mut self, scope: &VmScope<'_, SE>, operation: &ScriptOperation<'_, SE>, position: usize, context: &mut Context, _: &Registry, )

Source§

fn into_handle(self) -> VmDebuggerHandle<SE>
where Self: Sized + Send + Sync + 'static,

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> Finalize for T

Source§

unsafe fn finalize_raw(data: *mut ())

Safety Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Initialize for T
where T: Default,

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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

Source§

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.