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