pub fn try_new_zeroed() -> Result<StrongArc<mem::MaybeUninit<T>>, AllocError> {
        unsafe {
            Ok(StrongArc::from_ptr(StrongArc::try_allocate_for_layout(
                Layout::new::<T>(),
                |layout| Global.allocate_zeroed(layout),
                |mem| mem as *mut StrongArcInner<mem::MaybeUninit<T>>,
            )?))
        }
    }
/// Constructs a new `StrongArc` with uninitialized contents, with the memory
/// being filled with `0` bytes, returning an error if allocation fails.
///
/// See [`MaybeUninit::zeroed`][zeroed] for examples of correct and incorrect usage
/// of this method.
///
/// # Examples
///
/// ```
/// #![feature(new_uninit, allocator_api)]
///
/// use std::sync::Arc;
///
/// let zero = StrongArc::<u32>::try_new_zeroed()?;
/// let zero = unsafe { zero.assume_init() };
///
/// assert_eq!(*zero, 0);
/// # Ok::<(), std::alloc::AllocError>(())
/// ```
///
/// [zeroed]: mem::MaybeUninit::zeroed
Constructs a new `StrongArc` with uninitialized contents, with the memory
being filled with `0` bytes, returning an error if allocation fails.

See [`MaybeUninit::zeroed`][zeroed] for examples of correct and incorrect usage
of this method.
Constructs a new ` StrongArc ` with uninitialized contents with the memory being filled with ` 0 ` bytes returning an error if allocation fails . See [ ` MaybeUninit :: zeroed ` ] [ zeroed ] for examples of correct and incorrect usage of this method .
pub fn try_new_zeroed() -> Result<StrongArc<mem::MaybeUninit<T>>, AllocError> {
        unsafe {
            Ok(StrongArc::from_ptr(StrongArc::try_allocate_for_layout(
                Layout::new::<T>(),
                |layout| Global.allocate_zeroed(layout),
                |mem| mem as *mut StrongArcInner<mem::MaybeUninit<T>>,
            )?))
        }
    }
pub fn try_new_zeroed ( ) -> Result < StrongArc < mem :: MaybeUninit < T > > , AllocError > { unsafe { Ok ( StrongArc :: from_ptr ( StrongArc :: try_allocate_for_layout ( Layout :: new :: < T > ( ) , | layout | Global . allocate_zeroed ( layout ) , | mem | mem as * mut StrongArcInner < mem :: MaybeUninit < T > > , ) ? ) ) } }
Constructs a new `StrongArc` with uninitialized contents, with the memory
being filled with `0` bytes, returning an error if allocation fails.
Constructs a new ` StrongArc ` with uninitialized contents with the memory being filled with ` 0 ` bytes returning an error if allocation fails .
examples
None
![feature(new_uninit, allocator_api)]
None
ok::<(), std::alloc::allocerror>(())
None