Struct rcmut::RcMut [] [src]

pub struct RcMut<T> {
    // some fields omitted
}

A reference counted smart pointer with unrestricted mutability.

Methods

impl<T> RcMut<T>
[src]

fn new(val: T) -> RcMut<T>

Create a new RcMut for a value.

unsafe fn borrow(&self) -> &T

Get a reference to the value.

unsafe fn borrow_mut(&mut self) -> &mut T

Get a mutable reference to the value.

Trait Implementations

impl<T> Clone for RcMut<T>
[src]

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

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more