You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's pretty hard to use the num crate for writing generic const fns without this. Admittedly only useful currently with #![feature(const_fn_trait_bound)] but I don't think there is any harm to making them const fn now? Would require version bump though.
The text was updated successfully, but these errors were encountered:
Ah, I've only been using for abstraction over primitive types. Maybe PrimInt can have supertraits ConstOne and ConstZero? I don't know if Rust provides any way to avoid duplicating traits for every operation.
It's pretty hard to use the num crate for writing generic const fns without this. Admittedly only useful currently with
#![feature(const_fn_trait_bound)]
but I don't think there is any harm to making themconst fn
now? Would require version bump though.The text was updated successfully, but these errors were encountered: