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