Function emplacable::rc_pin_with

source ·
pub fn rc_pin_with<T>(
    emplacable: Emplacable<T, impl EmplacableFn<T>>
) -> Pin<Rc<T>>where
    T: ?Sized,
Expand description

Like Rc::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 Rc.