moveit::new

Function try_by

Source
pub fn try_by<T, E, F>(f: F) -> impl TryNew<Output = T, Error = E>
where F: FnOnce() -> Result<T, E>,
Expand description

Returns a TryNew that uses the provided closure for constructing a T.