pub trait DecimalTypeDowncast {
type Output<T: NativeDecimalType>;
// Required methods
fn into_i8(self) -> Self::Output<i8>;
fn into_i16(self) -> Self::Output<i16>;
fn into_i32(self) -> Self::Output<i32>;
fn into_i64(self) -> Self::Output<i64>;
fn into_i128(self) -> Self::Output<i128>;
fn into_i256(self) -> Self::Output<i256>;
}Expand description
Trait for downcasting decimal values to native integer types.
Required Associated Types§
Sourcetype Output<T: NativeDecimalType>
type Output<T: NativeDecimalType>
The output type for downcasting.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.