kornelski / rust-rgb

struct RGB for sharing pixels between crates
https://lib.rs/rgb
MIT License
98 stars 19 forks source link

`num-traits` strikes back! #94

Closed ripytide closed 5 months ago

ripytide commented 5 months ago

Optionally adds implementations of the Checked{Add,Sub..} traits from num-traits as opposed to doing it manually via inherent methods as in v0.8 which means it can be used generically unlike the inherent methods.

I also refactored the normal inherent macro a bit and switched all the glob imports to normal imports.

The dependencies now all have default-features = false as well.