Function bicoro::map_some

source ·
pub fn map_some<'a, I, O, A, B, C, F>(
    co: Coroutine<'a, I, O, C>,
    f: F
) -> Coroutine<'a, I, O, Option<B>>where
    F: FnOnce(A) -> B + Send + 'a,
    C: Into<Option<A>>,
Expand description

Maps the inner value

Sugar over bind_some