DecimalTypeDowncast

Trait DecimalTypeDowncast 

Source
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§

Source

type Output<T: NativeDecimalType>

The output type for downcasting.

Required Methods§

Source

fn into_i8(self) -> Self::Output<i8>

Downcast to i8.

Source

fn into_i16(self) -> Self::Output<i16>

Downcast to i16.

Source

fn into_i32(self) -> Self::Output<i32>

Downcast to i32.

Source

fn into_i64(self) -> Self::Output<i64>

Downcast to i64.

Source

fn into_i128(self) -> Self::Output<i128>

Downcast to i128.

Source

fn into_i256(self) -> Self::Output<i256>

Downcast to i256.

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.

Implementors§