Creates a new Arc.
impl<T, H> Arc<T, H>
where H: Allocator,
T: Leak,
<H as Allocator>::Pool: Default,
{
fn new() -> Result<ArcBuf<T, H>, Errno>
}This function first creates an ArcBuf which can then be used to create a real Arc 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: Arc<Vec<u8>> = try!(Arc::new()).set(Vec::new());