pub trait Getable<'vm, 'value>: Sized {
type Proxy: 'value;
// Required methods
fn from_value(vm: &'vm Thread, value: Variants<'value>) -> Self;
fn to_proxy(vm: &'vm Thread, value: Variants<'value>) -> Result<Self::Proxy>;
fn from_proxy(vm: &'vm Thread, proxy: &'value mut Self::Proxy) -> Self;
}
Expand description
Trait which allows rust values to be retrieved from the virtual machine
Required Associated Types§
Required Methods§
fn from_value(vm: &'vm Thread, value: Variants<'value>) -> Self
fn to_proxy(vm: &'vm Thread, value: Variants<'value>) -> Result<Self::Proxy>
fn from_proxy(vm: &'vm Thread, proxy: &'value mut Self::Proxy) -> Self
Object Safety§
This trait is not object safe.