fn float_traits(&self, n: f64) -> (f64, Alignment, char, Option<char>) {
        if self.flags.test(Flag::SignAwareZeroPad) {
            if n.is_sign_negative() {
                (-n, Alignment::Right, '0', Some('-'))
            } else {
                (n, Alignment::Right, '0', None)
            }
        } else if self.flags.test(Flag::SignPlus) && n.is_sign_positive() {
            (n, self.align, self.fill, Some('+'))
        } else {
            (n, self.align, self.fill, None)
        }
    }
/// get traits out of a floating point number.
get traits out of a floating point number.
get traits out of a floating point number .
fn float_traits(&self, n: f64) -> (f64, Alignment, char, Option<char>) {
        if self.flags.test(Flag::SignAwareZeroPad) {
            if n.is_sign_negative() {
                (-n, Alignment::Right, '0', Some('-'))
            } else {
                (n, Alignment::Right, '0', None)
            }
        } else if self.flags.test(Flag::SignPlus) && n.is_sign_positive() {
            (n, self.align, self.fill, Some('+'))
        } else {
            (n, self.align, self.fill, None)
        }
    }
fn float_traits ( & self , n : f64 ) -> ( f64 , Alignment , char , Option < char > ) { if self . flags . test ( Flag :: SignAwareZeroPad ) { if n . is_sign_negative ( ) { ( - n , Alignment :: Right , '0' , Some ( '-' ) ) } else { ( n , Alignment :: Right , '0' , None ) } } else if self . flags . test ( Flag :: SignPlus ) && n . is_sign_positive ( ) { ( n , self . align , self . fill , Some ( '+' ) ) } else { ( n , self . align , self . fill , None ) } }
get traits out of a floating point number.
get traits out of a floating point number .
&self
n
f64
&self
n
f64