Type Toppings
Opinionated collection of utility extensions for several of Rust's standard types, including:
ResultIteratorfutures::Steam
Documentation
https://docs.rs/type-toppings/latest/type_toppings/
Example
# Cargo.toml
[]
= { = "0.2.0", = ["iterator"] }
use IteratorExt;
// Map only the Some values in an iterator of Option<T>:
let data: = vec!
.into_iter
.map_opt
.collect;
assert_eq!;