uint
uint copied to clipboard
`from`: BLOCKED) It would be nice to impl From<_> as well, but then the
On 2022-05-28 @recmo wrote in 1ec2e50
“Recognize new tags”:
BLOCKED) It would be nice to impl From<_> as well, but then the
generic implementation impl<T: Into<U>, U> TryFrom<U> for T
conflicts with
our own implementation. This means we can only implement one.
In principle this can be worked around by specialization
, but that
triggers other compiler issues at the moment.
// FEATURE: (BLOCKED) It would be nice to impl From<_> as well, but then the
// generic implementation `impl<T: Into<U>, U> TryFrom<U> for T` conflicts with
// our own implementation. This means we can only implement one.
// In principle this can be worked around by `specialization`, but that
// triggers other compiler issues at the moment.
// impl<T, const BITS: usize> From<T> for Uint<BITS>
// where
// [(); nlimbs(BITS)]:,
// Uint<BITS>: TryFrom<T>,
From src/from.rs:1