Function bicoro::result [−][src]
pub fn result<'a, I, O, R>(r: R) -> Coroutine<'a, I, O, R>
Expand description
Return/unit. Creates a result of the supplied value
This lifts the value into the coroutine ‘world’
use bicoro::*;
let co :Coroutine<(),(),i32> = result(1);