Type Alias nanvm_lib::mem::ref_::Ref

source ·
pub type Ref<T, D> = OptionalRef<*const Block<T, D>>;
Expand description

A reference to an object allocated by a memory manager.

Aliased Type§

struct Ref<T, D> { /* private fields */ }

Implementations§

source§

impl<T: Object, D: Dealloc> Ref<T, D>

source

pub fn try_to_mut_ref(self) -> Result<MutRef<T, D>, Self>

Trait Implementations§

source§

impl<T: Object, D: Dealloc> Deref for Ref<T, D>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.