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

xiph / rav1e / 2545 / 1
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 14 Feb 2019 06:07PM UTC
Files 34
Run time 185min
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

14 Feb 2019 05:20PM UTC coverage: 79.269% (-0.004%) from 79.273%
RUST_BACKTRACE=1

push

travis-ci

tdaede
Adapt Pixel trait for convert_slice_2d()

Since Pixel is only implemented for u8 and u16 types, it is always
possible to cast a Pixel to an integral primitive type. However, the
compiler could not know this, because in theory any other type could
also implement the Pixel trait.

To enforce this restriction, make the (main) integral primitive types
implement CastForPrimitive<T> for any T which implements Pixel. That
way, the compiler knows that a Pixel (whatever its concrete type) can
always be cast to an integer.

Then, rewrite the constraints on convert_slice_2d() to use
CastFromPrimitive, so that callers need not to add redundant constraints
if T implements Pixel.

9517 of 12006 relevant lines covered (79.27%)

0.79 hits per line

Source Files on job 2545.1 (RUST_BACKTRACE=1)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 781
  • Travis Job 2545.1
  • a99da119 on github
  • Prev Job for RUST_BACKTRACE=1 on master (#2534.1)
  • Next Job for RUST_BACKTRACE=1 on master (#2547.1)
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