10 releases

Uses old Rust 2015

0.1.9 May 2, 2018
0.1.8 Mar 5, 2018
0.1.7 Feb 21, 2018
0.1.5 May 16, 2017
0.1.1 Dec 17, 2016

#275 in Rust patterns

Download history 279850/week @ 2024-07-20 269285/week @ 2024-07-27 268222/week @ 2024-08-03 269029/week @ 2024-08-10 274451/week @ 2024-08-17 297640/week @ 2024-08-24 271345/week @ 2024-08-31 288528/week @ 2024-09-07 257805/week @ 2024-09-14 286925/week @ 2024-09-21 282894/week @ 2024-09-28 271328/week @ 2024-10-05 284341/week @ 2024-10-12 286535/week @ 2024-10-19 275867/week @ 2024-10-26 269615/week @ 2024-11-02

1,161,980 downloads per month
Used in 1,455 crates (28 directly)

MIT/Apache

24KB
712 lines

fallible-streaming-iterator

CircleCI

Documentation

Fallible, streaming iteration

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Fallible, streaming iteration.

FallibleStreamingIterator differs from the standard library's Iterator trait in two ways: iteration can fail, resulting in an error, and only one element of the iteration is available at any time.

While these iterators cannot be used with Rust for loops, while let loops offer a similar level of ergonomics:

while let Some(value) = it.next()? {
    // use value
}

No runtime deps

Features