Method lrs::rc::Rc::add_ref

Adds a new reference, returning an Rc that points to the same data.

Syntax

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