Method lrs::rc::Rc::as_mut

Returns a mutable reference to the contained data if this is the only reference.

Syntax

impl<T, H> Rc<T, H>
    where H: Allocator,
          T: Leak,
{
    fn as_mut(&mut self) -> Option<&mut T>
}