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

#5 in #iteration

Download history 193551/week @ 2023-11-03 199492/week @ 2023-11-10 188019/week @ 2023-11-17 201913/week @ 2023-11-24 210836/week @ 2023-12-01 197973/week @ 2023-12-08 188352/week @ 2023-12-15 108562/week @ 2023-12-22 126720/week @ 2023-12-29 185755/week @ 2024-01-05 191229/week @ 2024-01-12 230115/week @ 2024-01-19 214314/week @ 2024-01-26 209083/week @ 2024-02-02 232814/week @ 2024-02-09 196890/week @ 2024-02-16

897,175 downloads per month
Used in 981 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