Creates a new Rc.
impl<T, H> Rc<T, H>
where H: Allocator,
T: Leak,
<H as Allocator>::Pool: Default,
{
fn new() -> Result<RcBuf<T, H>, Errno>
}This function first creates an RcBuf which can then be used to create a real Rc as shown in the example. The function does not take a value argument itself since this would complicate handling the case where allocating memory fails. = Examples
let arc: Rc<Vec<u8>> = try!(Rc::new()).set(Vec::new());