lexical_write_float/
float.rs1#![doc(hidden)]
6
7#[cfg(feature = "f16")]
8use lexical_util::bf16::bf16;
9use lexical_util::extended_float::ExtendedFloat;
10#[cfg(feature = "f16")]
11use lexical_util::f16::f16;
12
13#[cfg(not(feature = "compact"))]
14use crate::algorithm::DragonboxFloat;
15#[cfg(feature = "compact")]
16use crate::compact::GrisuFloat;
17
18pub type ExtendedFloat80 = ExtendedFloat<u64>;
22
23#[cfg(feature = "compact")]
25pub trait RawFloat: GrisuFloat {}
26
27#[cfg(not(feature = "compact"))]
28pub trait RawFloat: DragonboxFloat {}
29
30impl RawFloat for f32 {
31}
32impl RawFloat for f64 {
33}
34#[cfg(feature = "f16")]
35impl RawFloat for f16 {
36}
37#[cfg(feature = "f16")]
38impl RawFloat for bf16 {
39}