pub trait Dec<const N: usize> {
const TWOS_COMPLEMENT_BYTE_WIDTH: usize;
// Required methods
fn context() -> Context<Decimal<N>>;
fn u128_splitter() -> &'static Decimal<N>;
}
Expand description
Traits to generalize converting Decimal
values to and from their
coefficients’ two’s complements.
Required Associated Constants§
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.