Struct rcmut::RcMut
[−]
[src]
pub struct RcMut<T> { /* 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 as_rc(&self) -> &Rc<T>
Retrieve the inner Rc as a reference.
unsafe fn as_rc_mut(&mut self) -> &mut Rc<T>
Retrieve the inner Rc as a mutable reference.
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