Struct rcmut::ArcMut
[−]
[src]
pub struct ArcMut<T> { /* fields omitted */ }
A reference counted smart pointer with unrestricted mutability.
Methods
impl<T> ArcMut<T>
[src]
fn new(val: T) -> ArcMut<T>
Create a new ArcMut for a value.
unsafe fn as_arc(&self) -> &Arc<T>
Retrieve the inner Rc as a reference.
unsafe fn as_arc_mut(&mut self) -> &mut Arc<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 ArcMut<T>
[src]
fn clone(&self) -> ArcMut<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