[][src]Struct gluon_vm::thread::RootedValue

pub struct RootedValue<T> where
    T: VmRootInternal
{ /* fields omitted */ }

A rooted value

Methods

impl<T> RootedValue<T> where
    T: VmRootInternal
[src]

pub fn re_root<'vm, U>(&self, vm: U) -> Result<RootedValue<U>> where
    U: VmRoot<'vm>, 
[src]

pub fn get_value(&self) -> &Value[src]

pub fn get_variant(&self) -> Variants[src]

pub fn vm(&self) -> &T[src]

pub fn vm_mut(&mut self) -> &mut T[src]

pub fn clone_vm(&self) -> T where
    T: Clone
[src]

pub fn get<'vm>(&'vm self, index: usize) -> Option<RootedValue<T>> where
    T: VmRoot<'vm>, 
[src]

looks up the field at the given offset

pub fn get_field<'vm>(&'vm self, name: &str) -> Option<RootedValue<T>> where
    T: VmRoot<'vm>, 
[src]

looks up the record field with the given name

pub fn as_ref(&self) -> RootedValue<&Thread>[src]

impl<'vm> RootedValue<&'vm Thread>[src]

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

Methods from Deref<Target = Value>

pub fn get_variants(&self) -> Variants[src]

pub fn generation(&self) -> Generation[src]

pub fn obj_eq(&self, other: &Self) -> bool[src]

Trait Implementations

impl<T> Clone for RootedValue<T> where
    T: VmRootInternal + Clone
[src]

impl<T> Debug for RootedValue<T> where
    T: VmRootInternal
[src]

impl<T> Deref for RootedValue<T> where
    T: VmRootInternal
[src]

type Target = Value

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for RootedValue<RootedThread>[src]

impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for RootedValue<RootedThread>[src]

impl<T> Drop for RootedValue<T> where
    T: VmRootInternal
[src]

impl<'vm, 'value, T> Getable<'vm, 'value> for RootedValue<T> where
    T: Deref<Target = Thread> + VmRoot<'vm>, 
[src]

type Proxy = Variants<'value>

impl<T, U> PartialEq<RootedValue<U>> for RootedValue<T> where
    T: VmRootInternal,
    U: VmRootInternal
[src]

impl<'vm, T> Pushable<'vm> for RootedValue<T> where
    T: VmRootInternal
[src]

impl<T> Trace for RootedValue<T> where
    T: VmRootInternal
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for RootedValue<T>

impl<T> Send for RootedValue<T> where
    T: Send

impl<T> Sync for RootedValue<T> where
    T: Sync

impl<T> Unpin for RootedValue<T> where
    T: Unpin

impl<T> !UnwindSafe for RootedValue<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<'vm, T> AsyncPushable<'vm> for T where
    T: Pushable<'vm>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'_, T> Captures<'_> for T[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<D, T> FromPtr<D> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<'vm, T> Pushable<'vm> for T where
    T: Userdata
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.