fn float_to_str_common<T: float::MyFloat, F>(num: &T, precision: Option<usize>,
                                             post: F) -> Result
        where F : FnOnce(&str) -> Result {
    let digits = match precision {
        Some(i) => float::DigExact(i),
        None => float::DigMax(6),
    };
    float::float_to_str_bytes_common(num.abs(),
                                     digits,
                                     float::ExpNone,
                                     false,
                                     post)
}
// Common code of floating point Debug and Display.
Common code of floating point Debug and Display.
Common code of floating point Debug and Display .
fn float_to_str_common<T: float::MyFloat, F>(num: &T, precision: Option<usize>,
                                             post: F) -> Result
        where F : FnOnce(&str) -> Result {
    let digits = match precision {
        Some(i) => float::DigExact(i),
        None => float::DigMax(6),
    };
    float::float_to_str_bytes_common(num.abs(),
                                     digits,
                                     float::ExpNone,
                                     false,
                                     post)
}
fn float_to_str_common < T : float :: MyFloat , F > ( num : & T , precision : Option < usize > , post : F ) -> Result where F : FnOnce ( & str ) -> Result { let digits = match precision { Some ( i ) => float :: DigExact ( i ) , None => float :: DigMax ( 6 ) , } ; float :: float_to_str_bytes_common ( num . abs ( ) , digits , float :: ExpNone , false , post ) }
Common code of floating point Debug and Display.
Common code of floating point Debug and Display .
num
&T
precision
Option<usize>
post
F