Skip to main content

FromDecimal

Trait FromDecimal 

Source
pub trait FromDecimal<XS: XSpec> {
    // Required method
    fn from_decimal(decimal: Decimal) -> Self;
}

Required Methods§

Source

fn from_decimal(decimal: Decimal) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<XS: XSpec> FromDecimal<XS> for i8

Source§

fn from_decimal(decimal: Decimal) -> Self

Source§

impl<XS: XSpec> FromDecimal<XS> for i16

Source§

fn from_decimal(decimal: Decimal) -> Self

Source§

impl<XS: XSpec> FromDecimal<XS> for i32

Source§

fn from_decimal(decimal: Decimal) -> Self

Source§

impl<XS: XSpec> FromDecimal<XS> for i64

Source§

fn from_decimal(decimal: Decimal) -> Self

Source§

impl<XS: XSpec> FromDecimal<XS> for i128

Source§

fn from_decimal(decimal: Decimal) -> Self

Source§

impl<XS: XSpec> FromDecimal<XS> for isize

Source§

fn from_decimal(decimal: Decimal) -> Self

Implementors§