Skip to content

Tracking: num-traits support #157

Description

@virtualritz

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions