A user of my uniform-cubic-splines crate wanted to use it with ultraviolet and ran into a traits issue.
My crate relies on Zero/One traits. Those were removed from std::num (unfortunately, I think), in 2014. My crate uses num-traits::Zero/One.
That means if some third party crate that implements a type that someone wants to use with my crate does not implement the num-traits version of these traits, it won't work. A user can't add support for it on their side (and neither can even my crate) because of orphan rules.
I guess the only solution would be to add support for this to ultraviolet. FYI, cgmath, glam & nalgebra all support these.
Would you consider this at all (or a PR)?
A user of my
uniform-cubic-splinescrate wanted to use it withultravioletand ran into a traits issue.My crate relies on
Zero/Onetraits. Those were removed fromstd::num(unfortunately, I think), in 2014. My crate usesnum-traits::Zero/One.That means if some third party crate that implements a type that someone wants to use with my crate does not implement the
num-traitsversion of these traits, it won't work. A user can't add support for it on their side (and neither can even my crate) because of orphan rules.I guess the only solution would be to add support for this to
ultraviolet. FYI,cgmath,glam&nalgebraall support these.Would you consider this at all (or a PR)?