fn int_traits(&self, n: i64) -> (i64, Alignment, char, Option<char>) {
        if self.flags.test(Flag::SignAwareZeroPad) {
            if n < 0 {
                (-n, Alignment::Right, '0', Some('-'))
            } else {
                (n, Alignment::Right, '0', None)
            }
        } else if self.flags.test(Flag::SignPlus) && n >= 0 {
            (n, self.align, self.fill, Some('+'))
        } else {
            (n, self.align, self.fill, None)
        }
    }
/// get traits out of an integer.
get traits out of an integer.
get traits out of an integer .
fn int_traits(&self, n: i64) -> (i64, Alignment, char, Option<char>) {
        if self.flags.test(Flag::SignAwareZeroPad) {
            if n < 0 {
                (-n, Alignment::Right, '0', Some('-'))
            } else {
                (n, Alignment::Right, '0', None)
            }
        } else if self.flags.test(Flag::SignPlus) && n >= 0 {
            (n, self.align, self.fill, Some('+'))
        } else {
            (n, self.align, self.fill, None)
        }
    }
fn int_traits ( & self , n : i64 ) -> ( i64 , Alignment , char , Option < char > ) { if self . flags . test ( Flag :: SignAwareZeroPad ) { if n < 0 { ( - n , Alignment :: Right , '0' , Some ( '-' ) ) } else { ( n , Alignment :: Right , '0' , None ) } } else if self . flags . test ( Flag :: SignPlus ) && n >= 0 { ( n , self . align , self . fill , Some ( '+' ) ) } else { ( n , self . align , self . fill , None ) } }
get traits out of an integer.
get traits out of an integer .
&self
n
i64
&self
n
i64