1 2 3 4 5 6 7 8 9 10 11 12 13 14
use floats::{f128 as F128, f16 as F16}; // Helper trait to map std types to our custom types pub trait Customized { type Custom; } impl Customized for f16 { type Custom = F16; } impl Customized for f128 { type Custom = F128; }