Type Definition GcRef
gluon_vm::gc
type GcRef<'a, T> = Borrow<'a, GcPtr<T>>;
impl<'a, T: ?Sized> GcRef<'a, T>
pub fn as_ref(&self) -> &'a T
impl<'a, T: ?Sized> Clone for GcRef<'a, T>
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
source
impl<'gc, T: ?Sized> From<Borrow<'gc, OwnedPtr<T>>> for GcRef<'gc, T>
fn from(ptr: OwnedGcRef<'gc, T>) -> Self
Freezes self into a shared pointer
self