pub trait UintTryFrom<T>: Sized { }
Expand description

⚠️ Workaround for Rust issue #50133. Use TryFrom instead.

We cannot implement TryFrom<Uint> for Uint directly, but we can create a new identical trait and implement it there. We can even give this trait a blanket implementation inheriting all TryFrom<_> implementations.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<const BITS: usize, const LIMBS: usize, T> UintTryFrom<T> for Uint<BITS, LIMBS>
where Uint<BITS, LIMBS>: TryFrom<T, Error = ToUintError<Uint<BITS, LIMBS>>>,

Blanket implementation for any type that implements TryFrom<Uint>.

source§

impl<const BITS: usize, const LIMBS: usize, const BITS_SRC: usize, const LIMBS_SRC: usize> UintTryFrom<Uint<BITS_SRC, LIMBS_SRC>> for Uint<BITS, LIMBS>