Struct cell_gc::GCRef
[−]
[src]
pub struct GCRef<'h, T: IntoHeap<'h>> { /* fields omitted */ }
Methods
impl<'h, T: IntoHeap<'h>> GCRef<'h, T>
[src]
unsafe fn new(p: *mut T::In) -> GCRef<'h, T>
Pin an object, returning a new GCRef
that will unpin it when
dropped. Unsafe because if p
is not a pointer to a live allocation of
type T::In
--- and a complete allocation, not a sub-object of one ---
then later unsafe code will explode.
fn as_ptr(&self) -> *const T::In
fn as_mut_ptr(&self) -> *mut T::In
Trait Implementations
impl<'h, T: IntoHeap<'h>> Drop for GCRef<'h, T>
[src]
impl<'h, T: IntoHeap<'h>> Clone for GCRef<'h, T>
[src]
fn clone(&self) -> GCRef<'h, T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'h, T: IntoHeap<'h>> Debug for GCRef<'h, T>
[src]
impl<'h, T: IntoHeap<'h>> PartialEq for GCRef<'h, T>
[src]
fn eq(&self, other: &GCRef<'h, T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.