pub(super) fn fallible_map_box<T, U, E>(
    b: Box<T>,
    map: impl FnOnce(T) -> Result<U, E>
) -> Result<Box<U>, E>
Expand description

Maps a Box<T> to a Box<U>, reusing the underlying storage if possible.