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

#278 in Rust patterns

Download history 255995/week @ 2024-07-31 283991/week @ 2024-08-07 253812/week @ 2024-08-14 290068/week @ 2024-08-21 273992/week @ 2024-08-28 298882/week @ 2024-09-04 277080/week @ 2024-09-11 263848/week @ 2024-09-18 285106/week @ 2024-09-25 281744/week @ 2024-10-02 268248/week @ 2024-10-09 292302/week @ 2024-10-16 283379/week @ 2024-10-23 270057/week @ 2024-10-30 274101/week @ 2024-11-06 296185/week @ 2024-11-13

1,178,368 downloads per month
Used in 1,476 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