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

Kixiron / lasso / #72 / 1
83%
master: 83%

Build:
DEFAULT BRANCH: master
Ran 25 Nov 2020 06:55PM UTC
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

25 Nov 2020 06:55PM UTC coverage: 93.924% (-0.7%) from 94.587%
#72.1

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.

1793 of 1909 relevant lines covered (93.92%)

1.65 hits per line

Source Files on job #72.1
  • Tree
  • List 0
  • Changed 8
  • Source Changed 1
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 72
  • ba88c445 on github
  • Prev Job for on master (#274243125.1)
  • Next Job for on master (#383820759.1)
  • 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