pub trait Wrapper<'scope, 'data>: WrapperPriv<'scope, 'data> {
    fn as_ref(self) -> Ref<'scope, 'data, Self> { ... }
    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

Trait implemented by all pointer wrapper types.

Provided Methods

Convert the wrapper to a Ref.

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, AsyncJulia::error_color, or AsyncJulia::try_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