Function bicoro::bind_some

source ·
pub fn bind_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) -> Coroutine<'a, I, O, Option<B>> + Send + 'a,
    C: Into<Option<A>>,
Expand description

Process the Some value, or short-circuit

This is basically option semantics Works with any C that can be turned into option a