Trait jlrs::wrappers::ptr::Wrapper[][src]

pub trait Wrapper<'scope, 'data>: Wrapper<'scope, 'data> {
    type Ref;
    fn as_ref(self) -> Self::Ref;

    fn as_value(self) -> Value<'scope, 'data> { ... }
fn display_string(self) -> JlrsResult<String> { ... }
fn error_string(self) -> JlrsResult<String> { ... }
fn display_string_or<S: Into<String>>(self, default: S) -> String { ... }
fn error_string_or<S: Into<String>>(self, default: S) -> String { ... } }
Expand description

Methods shared by all builtin pointer wrappers.

Associated Types

The reference type associated with this wrapper.

Required methods

Convert the wrapper to a Ref.

Provided methods

Convert the wrapper to a Value.

Convert the wrapper to its display string, i.e. the string that is shown when calling Base.show.

Convert the wrapper to its error string, i.e. the string that is shown when calling Base.showerror. This string can contain ANSI color codes if this is enabled by calling Julia::error_color.

Convert the wrapper to its display string, i.e. the string that is shown by calling Base.display, or some default value.

Convert the wrapper to its error string, i.e. the string that is shown when this value is thrown as an exception, or some default value.

Implementors