pub unsafe fn try_by_raw<T, E, F>(f: F) -> impl TryNew<Output = T, Error = E>where F: FnOnce(Pin<&mut MaybeUninit<T>>) -> Result<(), E>,
Returns a TryNew that uses the provided closure for construction.
TryNew
This is the most primitive TryNew-creation function, and is almost-always preferred over implementing TryNew directly.
f must respect the safety requirements of TryNew, since it is used as an implementation basis.
f