Skip to main content

IntoReturn

Trait IntoReturn 

Source
pub trait IntoReturn
where Self: Sized,
{ // Required method fn into_return(self) -> Result<Value, VmError>; }
Expand description

Trait governing things that can be returned from native functions.

Required Methods§

Source

fn into_return(self) -> Result<Value, VmError>

Convert something into a return value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> IntoReturn for Result<T, Error>
where T: ToValue,

Source§

impl<T> IntoReturn for Result<T, Panic>
where T: ToValue,

Source§

impl<T> IntoReturn for Result<T, RuntimeError>
where T: ToValue,

Source§

impl<T> IntoReturn for Result<T, VmError>
where T: ToValue,

Implementors§

Source§

impl<T> IntoReturn for T
where T: ToValue,