Trait ruint::UintTryFrom
source · 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§
impl<const BITS: usize, const LIMBS: usize, T> UintTryFrom<T> for Uint<BITS, LIMBS>where
Self: TryFrom<T, Error = ToUintError<Self>>,
Blanket implementation for any type that implements TryFrom<Uint>
.