Skip to main content

StaticFormat

Trait StaticFormat 

Source
pub trait StaticFormat {
    const FORMAT: BigFormat;
}
Expand description

Trait for types that encode a complete BigFormat at the type level.

Implemented by Format and DecimalFormat to allow generic code to be parameterized by the floating-point format without runtime overhead.

Required Associated Constants§

Source

const FORMAT: BigFormat

The BigFormat descriptor encoded by this type.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<const DIGITS: u64, R, const EXP_BITS: u8, S, P> StaticFormat for DecimalFormat<DIGITS, R, EXP_BITS, S, P>

Source§

impl<const PREC: u64, R, const EXP_BITS: u8, S, P> StaticFormat for Format<PREC, R, EXP_BITS, S, P>