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

xiph / rav1e / 2545
86%

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

pending completion
2545

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

Jobs
ID Job ID Ran Files Coverage
1 2545.1 (RUST_BACKTRACE=1) 14 Feb 2019 06:07PM UTC 0
79.27
Travis Job 2545.1
Source Files on build 2545
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2545
  • a99da119 on github
  • Prev Build on master (#2534)
  • Next Build on master (#2547)
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