pub fn arc_new_with<T>(
emplacable: Emplacable<T, impl EmplacableFn<T>>,
) -> Arc<T>where
T: ?Sized,Expand description
Like Arc::new, but takes an Emplacer<T, _>
instead of T directly.
Runs the contained unsized-value-returning closure,
and returns the result emplaced into an Arc.