Type Alias gluon_vm::gc::GcRef

source ·
pub type GcRef<'a, T> = Borrow<'a, GcPtr<T>>;

Aliased Type§

struct GcRef<'a, T>(/* private fields */);

Implementations§

source§

impl<'a, T: ?Sized> GcRef<'a, T>

source

pub fn as_ref(&self) -> &'a T

Trait Implementations§

source§

impl<'a, T: ?Sized> Clone for GcRef<'a, T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

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>

source§

fn from(ptr: OwnedGcRef<'gc, T>) -> Self

Freezes self into a shared pointer