#iterator #streaming #fallible

fallible-streaming-iterator

Fallible streaming iteration

10 releases

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
Download history 1043/week @ 2019-04-03 1533/week @ 2019-04-10 2572/week @ 2019-04-17 2053/week @ 2019-04-24 1978/week @ 2019-05-01 2147/week @ 2019-05-08 4424/week @ 2019-05-15 4303/week @ 2019-05-22 5963/week @ 2019-05-29 6035/week @ 2019-06-05 6891/week @ 2019-06-12 3312/week @ 2019-06-19 4380/week @ 2019-06-26 3386/week @ 2019-07-03 3426/week @ 2019-07-10

9,817 downloads per month
Used in 31 crates (2 directly)

MIT/Apache

23KB
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