Struct gluon_vm::thread::Root [] [src]

pub struct Root<'vm, T: ?Sized + 'vm> {
    // some fields omitted
}

A rooted userdata value

Trait Implementations

impl<'vm, T: Any> VMType for Root<'vm, T>
[src]

type Type = T

A version of Self which implements Any allowing a TypeId to be retrieved

fn make_type(vm: &Thread) -> TcType

Creates an gluon type which maps to Self in rust

fn extra_args() -> VMIndex

How many extra arguments a function returning this type requires. Used for abstract types which when used in return position should act like they still need more arguments before they are called Read more

impl<'vm, T: Userdata> Getable<'vm> for Root<'vm, T>
[src]

fn from_value(vm: &'vm Thread, value: Variants) -> Option<Root<'vm, T>>

unsafe fn from_value_unsafe(vm: &'vm Thread, value: Variants) -> Option<Self>

unsafe version of from_value which allows references to the internal of GcPtr's to be extracted if value is rooted Read more

impl<'vm, T: ?Sized> Drop for Root<'vm, T>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl<'vm, T: ?Sized> Deref for Root<'vm, T>
[src]

type Target = T

The resulting type after dereferencing

fn deref(&self) -> &T

The method called to dereference a value