Struct extra::rc::RcMut

pub struct RcMut<T> {
    priv ptr: *mut RcMutBox<T>,
}

Mutable reference counted pointer type

Methods

impl<T: std::kinds::Send> RcMut<T>

fn from_send(value: T) -> RcMut<T>

impl<T: std::kinds::Freeze> RcMut<T>

fn from_freeze(value: T) -> RcMut<T>

impl<T> RcMut<T>

fn with_borrow<U>(&self, f: &fn(&T) -> U) -> U

Fails if there is already a mutable borrow of the box

fn with_mut_borrow<U>(&self, f: &fn(&mut T) -> U) -> U

Fails if there is already a mutable or immutable borrow of the box

Trait Implementations

impl<T> std::ops::Drop for RcMut<T>

fn drop(&mut self)

impl<T> std::clone::Clone for RcMut<T>

fn clone(&self) -> RcMut<T>

Return a shallow copy of the reference counted pointer.

impl<T: std::clone::DeepClone> std::clone::DeepClone for RcMut<T>

fn deep_clone(&self) -> RcMut<T>

Return a deep copy of the reference counted pointer.