pub fn try_new_uninit() -> Result<StrongArc<mem::MaybeUninit<T>>, AllocError> {
        unsafe {
            Ok(StrongArc::from_ptr(StrongArc::try_allocate_for_layout(
                Layout::new::<T>(),
                |layout| Global.allocate(layout),
                |mem| mem as *mut StrongArcInner<mem::MaybeUninit<T>>,
            )?))
        }
    }
/// Constructs a new `StrongArc` with uninitialized contents, returning an error
/// if allocation fails.
///
/// # Examples
///
/// ```
/// #![feature(new_uninit, allocator_api)]
/// #![feature(get_mut_unchecked)]
///
/// use std::sync::Arc;
///
/// let mut five = StrongArc::<u32>::try_new_uninit()?;
///
/// let five = unsafe {
///     // Deferred initialization:
///     StrongArc::get_mut_unchecked(&mut five)
///         .as_mut_ptr()
///         .write(5);
///
///     five.assume_init()
/// };
///
/// assert_eq!(*five, 5);
/// # Ok::<(), std::alloc::AllocError>(())
/// ```
Constructs a new `StrongArc` with uninitialized contents, returning an error
if allocation fails.
Constructs a new ` StrongArc ` with uninitialized contents returning an error if allocation fails .
pub fn try_new_uninit() -> Result<StrongArc<mem::MaybeUninit<T>>, AllocError> {
        unsafe {
            Ok(StrongArc::from_ptr(StrongArc::try_allocate_for_layout(
                Layout::new::<T>(),
                |layout| Global.allocate(layout),
                |mem| mem as *mut StrongArcInner<mem::MaybeUninit<T>>,
            )?))
        }
    }
pub fn try_new_uninit ( ) -> Result < StrongArc < mem :: MaybeUninit < T > > , AllocError > { unsafe { Ok ( StrongArc :: from_ptr ( StrongArc :: try_allocate_for_layout ( Layout :: new :: < T > ( ) , | layout | Global . allocate ( layout ) , | mem | mem as * mut StrongArcInner < mem :: MaybeUninit < T > > , ) ? ) ) } }
Constructs a new `StrongArc` with uninitialized contents, returning an error
if allocation fails.
Constructs a new ` StrongArc ` with uninitialized contents returning an error if allocation fails .
examples
None
![feature(new_uninit, allocator_api)]
None
![feature(get_mut_unchecked)]
use std::sync::Arc.

let mut five = StrongArc::::try_new_uninit()?.

let five = unsafe {
Deferred initialization:
StrongArc::get_mut_unchecked(&mut five)
.as_mut_ptr()
.write(5).

five.assume_init()
}.


use std :: sync :: Arc . let mut five = StrongArc :::: try_new_uninit () ? . let five = unsafe { Deferred initialization : StrongArc :: get_mut_unchecked ( &mut five ) . as_mut_ptr () . write ( 5 ) . five . assume_init () } .
ok::<(), std::alloc::allocerror>(())
None