Skip to main content

BigDecimalExt

Trait BigDecimalExt 

Source
pub trait BigDecimalExt {
Show 13 methods // Required methods fn to_i8(&self) -> Option<i8>; fn to_i16(&self) -> Option<i16>; fn to_i32(&self) -> Option<i32>; fn to_i64(&self) -> Option<i64>; fn to_i128(&self) -> Option<i128>; fn to_u8(&self) -> Option<u8>; fn to_u16(&self) -> Option<u16>; fn to_u32(&self) -> Option<u32>; fn to_u128(&self) -> Option<u128>; fn to_u64(&self) -> Option<u64>; fn to_f32(&self) -> Option<f32>; fn to_f64(&self) -> Option<f64>; fn is_integer_representation(&self) -> bool;
}

Required Methods§

Source

fn to_i8(&self) -> Option<i8>

Source

fn to_i16(&self) -> Option<i16>

Source

fn to_i32(&self) -> Option<i32>

Source

fn to_i64(&self) -> Option<i64>

Source

fn to_i128(&self) -> Option<i128>

Source

fn to_u8(&self) -> Option<u8>

Source

fn to_u16(&self) -> Option<u16>

Source

fn to_u32(&self) -> Option<u32>

Source

fn to_u128(&self) -> Option<u128>

Source

fn to_u64(&self) -> Option<u64>

Source

fn to_f32(&self) -> Option<f32>

Source

fn to_f64(&self) -> Option<f64>

Source

fn is_integer_representation(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BigDecimalExt for BigDecimal

Implementors§