[][src]Struct haru::vmbindings::gc::Gc

#[repr(transparent)]
pub struct Gc<T: Sized + GcTraceable> { /* fields omitted */ }

Methods

impl<T: Sized + GcTraceable> Gc<T>[src]

pub fn new_nil() -> Gc<T>[src]

pub fn from_raw(ptr: *mut T) -> Gc<T>[src]

pub fn into_raw(self) -> *mut T[src]

pub fn to_raw(&self) -> *const T[src]

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

pub fn ptr_eq(&self, right: &Gc<T>) -> bool[src]

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

Trait Implementations

impl<T: Sized + GcTraceable> AsRef<T> for Gc<T>[src]

impl<T: Sized + GcTraceable> Clone for Gc<T>[src]

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

Performs copy-assignment from source. Read more

impl<T: Sized + GcTraceable> Drop for Gc<T>[src]

Auto Trait Implementations

impl<T> !Send for Gc<T>

impl<T> !Sync for Gc<T>

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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