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

#137 in Rust patterns

Download history 195759/week @ 2023-12-13 135491/week @ 2023-12-20 103603/week @ 2023-12-27 177192/week @ 2024-01-03 183441/week @ 2024-01-10 218684/week @ 2024-01-17 220894/week @ 2024-01-24 212181/week @ 2024-01-31 225968/week @ 2024-02-07 234544/week @ 2024-02-14 277053/week @ 2024-02-21 260000/week @ 2024-02-28 264758/week @ 2024-03-06 242455/week @ 2024-03-13 260361/week @ 2024-03-20 183114/week @ 2024-03-27

997,150 downloads per month
Used in 1,060 crates (27 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