Skip to main content

Decimal

Trait Decimal 

Source
pub trait Decimal:
    DecimalArithmetic
    + DecimalConvert
    + DecimalTranscendental
    + DecimalConstants { }
Expand description

Marker supertrait combining the four halves of the decimal API surface (DecimalArithmetic, DecimalConvert, crate::DecimalTranscendental, crate::DecimalConstants).

Implemented automatically for any type that implements all four; see the module-level documentation for usage.

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§