pub type MutableHandleValue<'a> = MutableHandle<'a, Value>;

Aliased Type§

struct MutableHandleValue<'a> {
    pub(crate) ptr: *mut Value,
    anchor: PhantomData<&'a mut Value>,
}

Fields§

§ptr: *mut Value§anchor: PhantomData<&'a mut Value>

Implementations§

source§

impl<'a, T> MutableHandle<'a, T>

source

pub unsafe fn from_marked_location(ptr: *mut T) -> MutableHandle<'a, T>

source

pub unsafe fn from_raw(handle: MutableHandle<T>) -> MutableHandle<'a, T>

source

pub fn handle(&self) -> Handle<'_, T>

source

pub fn new(ptr: &'a mut T) -> MutableHandle<'a, T>

source

pub fn get(&self) -> Twhere T: Copy,

source

pub fn set(&mut self, v: T)where T: Copy,

Trait Implementations§

source§

impl<'a, T> Clone for MutableHandle<'a, T>where T: Clone + 'a,

source§

fn clone(&self) -> MutableHandle<'a, T>

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<'a, T> Deref for MutableHandle<'a, T>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<'a, T> DerefMut for MutableHandle<'a, T>

source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.
source§

impl<'a, T> IntoHandle for MutableHandle<'a, T>

§

type Target = T

The type of the handle
source§

fn into_handle(self) -> Handle<T>

Convert this object to a handle.
source§

impl<'a, T> IntoMutableHandle for MutableHandle<'a, T>

source§

fn into_handle_mut(self) -> MutableHandle<T>

Convert this object to a mutable handle.
source§

impl<'a, T> Copy for MutableHandle<'a, T>where T: Copy + 'a,