Skip to main content

into_init

Function into_init 

Source
pub fn into_init<F, T, E, I>(f: F) -> impl Init<T, E>
where I: Init<T, E>, F: FnOnce() -> Result<I, E>,
Expand description

Convert a closure returning Result<impl Init<T, E>, E> into an Init<T, E>.