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

pub struct RootedValue<T> where
    T: Deref<Target = Thread>, 
{ /* fields omitted */ }

A rooted value

Methods

impl<T> RootedValue<T> where
    T: Deref<Target = Thread>, 
[src]

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

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

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

pub fn vm(&self) -> &Thread[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]

Trait Implementations

impl<'vm, T> Pushable<'vm> for RootedValue<T> where
    T: Deref<Target = Thread>, 
[src]

fn status_push(self, context: &mut ActiveThread<'vm>) -> Status where
    Self: Sized
[src]

unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
    Self: Sized
[src]

fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
    Self: Sized,
    T: VmRoot<'vm>, 
[src]

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

impl<T> Clone for RootedValue<T> where
    T: Deref<Target = Thread> + Clone
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Drop for RootedValue<T> where
    T: Deref<Target = Thread>, 
[src]

impl<T, U> PartialEq<RootedValue<U>> for RootedValue<T> where
    T: Deref<Target = Thread>,
    U: Deref<Target = Thread>, 
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<T> Debug for RootedValue<T> where
    T: Deref<Target = Thread>, 
[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

fn async_status_push(
    self,
    context: &mut ActiveThread<'vm>,
    frame_index: VmIndex
) -> Status where
    Self: Sized
[src]

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

fn status_push(self, context: &mut ActiveThread<'vm>) -> Status where
    Self: Sized
[src]

unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
    Self: Sized
[src]

fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
    Self: Sized,
    T: VmRoot<'vm>, 
[src]

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

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<Choices> CoproductSubsetter for Choices[src]

type Remainder = Choices

impl<Source> Sculptor for Source[src]

type Remainder = Source

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

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