Type Alias gluon_vm::api::OpaqueValue

source ·
pub type OpaqueValue<T, V> = Opaque<RootedValue<T>, V>;

Aliased Type§

struct OpaqueValue<T, V>(/* private fields */);

Implementations§

source§

impl<'vm, V> OpaqueValue<&'vm Thread, V>
where V: ?Sized,

source

pub fn vm_(&self) -> &'vm Thread

source§

impl<T, V> OpaqueValue<T, V>
where T: VmRootInternal, V: ?Sized,

source

pub fn vm(&self) -> &Thread

source

pub fn to_value<'vm>(&'vm self) -> V
where V: Getable<'vm, 'vm>,

Converts the value into its Rust representation

source§

impl<T, V> OpaqueValue<T, [V]>
where T: VmRootInternal,

source

pub fn get2<'value>(&'value self, index: VmInt) -> Option<V>
where V: for<'vm> Getable<'vm, 'value>,

Trait Implementations§

source§

impl<'de, V> Deserialize<'de> for OpaqueValue<RootedThread, V>
where V: ?Sized,

source§

fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'vm, 'value, T, V> Getable<'vm, 'value> for OpaqueValue<T, V>
where V: ?Sized, T: VmRoot<'vm>,

§

type Proxy = Variants<'value>

source§

fn to_proxy(_vm: &'vm Thread, value: Variants<'value>) -> Result<Self::Proxy>

source§

fn from_proxy(vm: &'vm Thread, proxy: &'value mut Self::Proxy) -> Self

source§

fn from_value(vm: &'vm Thread, value: Variants<'value>) -> Self