pub const fn new() -> OnceCell<T> {
        #[cfg(feature = "std")]
        {
            OnceCell {
                inner: SyncOnceCell::new(),
            }
        }
        #[cfg(not(feature = "std"))]
        {
            OnceCell {
                inner: OnceBox::new(),
            }
        }
    }
/// Creates a new empty cell.
Creates a new empty cell.
Creates a new empty cell .
pub const fn new() -> OnceCell<T> {
        #[cfg(feature = "std")]
        {
            OnceCell {
                inner: SyncOnceCell::new(),
            }
        }
        #[cfg(not(feature = "std"))]
        {
            OnceCell {
                inner: OnceBox::new(),
            }
        }
    }
pub const fn new ( ) -> OnceCell < T > { # [ cfg ( feature " " ) ] { OnceCell { inner : SyncOnceCell :: new ( ) , } } # [ cfg ( not ( feature " " ) ) ] { OnceCell { inner : OnceBox :: new ( ) , } } }
Creates a new empty cell.
Creates a new empty cell .