pub trait CastFrom<Input> {
// Required method
fn cast_from(input: Input) -> Self;
}
Expand description
A trait that allows to generically cast one type from another.
This type is similar to the std::convert::From
trait, but the conversion between the two
types is deferred to the individual as
casting. If in doubt about the semantics of such a
casting, refer to
the rust reference.
Required Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for i128
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for i128
Available on crate feature
integer
only.fn cast_from(input: StaticSignedBigInt<N>) -> Self
source§impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for u8
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for u8
Available on crate feature
integer
only.fn cast_from(input: StaticSignedBigInt<N>) -> Self
source§impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for u16
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for u16
Available on crate feature
integer
only.fn cast_from(input: StaticSignedBigInt<N>) -> Self
source§impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for u32
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for u32
Available on crate feature
integer
only.fn cast_from(input: StaticSignedBigInt<N>) -> Self
source§impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for u64
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for u64
Available on crate feature
integer
only.fn cast_from(input: StaticSignedBigInt<N>) -> Self
source§impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u8
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u8
Available on crate feature
integer
only.fn cast_from(input: StaticUnsignedBigInt<N>) -> Self
source§impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u32
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u32
Available on crate feature
integer
only.fn cast_from(input: StaticUnsignedBigInt<N>) -> Self
source§impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u64
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u64
Available on crate feature
integer
only.fn cast_from(input: StaticUnsignedBigInt<N>) -> Self
source§impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u128
Available on crate feature integer
only.
impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u128
Available on crate feature
integer
only.fn cast_from(input: StaticUnsignedBigInt<N>) -> Self
Implementors§
impl CastFrom<StaticUnsignedBigInt<4>> for U512
Available on crate feature
integer
only.impl CastFrom<StaticUnsignedBigInt<8>> for U256
Available on crate feature
integer
only.impl<FromId, IntoId> CastFrom<FheInt<FromId>> for FheInt<IntoId>where
FromId: FheIntId,
IntoId: FheIntId,
Available on crate feature
integer
only.impl<FromId, IntoId> CastFrom<FheInt<FromId>> for FheUint<IntoId>where
FromId: FheIntId,
IntoId: FheUintId,
Available on crate feature
integer
only.impl<FromId, IntoId> CastFrom<FheUint<FromId>> for FheInt<IntoId>where
FromId: FheUintId,
IntoId: FheIntId,
Available on crate feature
integer
only.impl<FromId, IntoId> CastFrom<FheUint<FromId>> for FheUint<IntoId>where
FromId: FheUintId,
IntoId: FheUintId,
Available on crate feature
integer
only.impl<Id> CastFrom<FheBool> for FheInt<Id>where
Id: FheIntId,
Available on crate feature
integer
only.impl<Id> CastFrom<FheBool> for FheUint<Id>where
Id: FheUintId,
Available on crate feature
integer
only.impl<Num> CastFrom<bool> for Numwhere
Num: Numeric,
impl<const N: usize> CastFrom<u8> for StaticSignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<u8> for StaticUnsignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<u16> for StaticSignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<u32> for StaticSignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<u32> for StaticUnsignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<u64> for StaticSignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<u64> for StaticUnsignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<u128> for StaticUnsignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for StaticSignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<StaticSignedBigInt<N>> for StaticUnsignedBigInt<N>
Available on crate feature
integer
only.impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for StaticSignedBigInt<N>
Available on crate feature
integer
only.