[][src]Trait artichoke_core::debug::Debug

pub trait Debug {
    type Value: Value;
    pub fn inspect_type_name_for_value(&mut self, value: Self::Value) -> &str;
}

Debugging and Exception message support.

Associated Types

type Value: Value[src]

Concrete type for return values from eval.

Loading content...

Required methods

pub fn inspect_type_name_for_value(&mut self, value: Self::Value) -> &str[src]

Return a name for thie given value's type suitable for using in an Exception message.

Some immediate types like true, false, and nil are shown by value rather than by class.

This function suppresses all errors and returns an empty string on error.

Loading content...

Implementors

Loading content...