Resultados da pesquisa a pedido "filterfunction"
Qual é a maneira mais idiomática de trabalhar com um Iterador de Resultados?
Eu tenho um código como este: let things = vec![/* ...*/]; // e.g. Vec<String> things .map(|thing| { let a = try!(do_stuff(thing)); Ok(other_stuff(a)) }) .filter(|thing_result| match *thing_result { Err(e) => true, Ok(a) => check(a), }) ...