uint icon indicating copy to clipboard operation
uint copied to clipboard

`from`: BLOCKED) It would be nice to impl From<_> as well, but then the

Open github-actions[bot] opened this issue 2 years ago • 0 comments

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

github-actions[bot] avatar May 28 '22 20:05 github-actions[bot]