• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kixiron / lasso / #72
83%

Build:
DEFAULT BRANCH: master
Ran 25 Nov 2020 06:55PM UTC
Jobs 1
Files 8
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Canceled at 08 Jun 2024 01:21PM UTC via web
#72

push

Chase Wilson
Make interner iterators more like slice iterators

The iterators for `iter()` and `strings()` were less useful than
iterators over the underlying slice of strings. This commit makes them
more equivalent, without having to expose implementation details.

The underlying iterators are efficiently clonable (they're just a couple
of pointers and, for `Iter`, a count) so this crate's iterators can be
cloned efficiently too.

Similarly, slice and enumeration iterators can be efficiently navigated
both forward and backward, and they're both fused iterators as well.

This does have forward-compatibility implications since this represents a
promise that either future implementations will also be efficiently
clonable and double-ended, or the semver will change.

A better way to get the same result would be to make `iter()` and
`strings()` return `impl Iterator<...> + Clone + DoubleEndedIterator +
ExactSizeIterator + FusedIterator`. That would also avoid a bunch of
boilerplate and allow using the standard library's efficient
implementations of methods like `Iterator::nth`, instead of the current
use of the inefficient default implementations.

Unfortunately, support for `impl Trait` in associated types hasn't
stabilized yet, so that would currently only work on nightly Rust.

13 of 13 new or added lines in 1 file covered. (100.0%)

1793 of 1909 relevant lines covered (93.92%)

1.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #72.1 25 Nov 2020 06:55PM UTC 0
93.92
Source Files on build #72
Detailed source file information is not available for this build.
  • Back to Repo
  • ba88c445 on github
  • Prev Build on master (#274243125)
  • Next Build on master (#383820759)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc