Function try_by_raw
Source pub unsafe fn try_by_raw<T, E, F>(f: F) -> impl TryNew<Output = T, Error = E>
Expand description
Returns a TryNew that uses the provided closure for construction.
This is the most primitive TryNew-creation function, and is
almost-always preferred over implementing TryNew directly.
ยงSafety
f must respect the safety requirements of TryNew, since it is used
as an implementation basis.