isaacholt100 / bnum

Arbitrary, fixed size numeric types that extend the functionality of primitive numeric types in Rust.
https://crates.io/crates/bnum
Other
67 stars 8 forks source link

Implement separate methods for `num_traits::ToPrimitive` that don't rely on `TryFrom::try_from` #4

Closed isaacholt100 closed 2 years ago

isaacholt100 commented 2 years ago

This is required because, as mentioned in #3, currently the From and TryFrom implementations are not quite correct, since there are currently no bounds on N to decide whether the conversion trait should be From or TryFrom.