Struct rjs::gc::handles::root::Root [] [src]

pub struct Root<T> {
    // some fields omitted
}

Methods

impl<T> Root<T>

unsafe fn new<U: AsPtr<T>>(heap: &GcHeap, ptr: U) -> Root<T>

fn as_local<U: GcAllocator>(&self, allocator: &U) -> Local<T>

Trait Implementations

impl<T> Deref for Root<T>

type Target = T

fn deref(&self) -> &T

impl<T> DerefMut for Root<T>

fn deref_mut(&mut self) -> &mut T

impl<T> Clone for Root<T>

fn clone(&self) -> Root<T>

fn clone_from(&mut self, source: &Self)

impl<T> Drop for Root<T>

fn drop(&mut self)

impl<T> AsPtr<T> for Root<T>

fn as_ptr(&self) -> Ptr<T>