fn fmt(&self, f: &mut Formatter) -> fmt::Result {
        // RGB (128, 255, 9) 0x80FF5A  0x{:>02X}{:>02X}{:>02X}
        // I am not very happy with this solution. I think this can be done in a better way.
        write!(f, "RGB ({0}, {1}, {2}) 0x{3}{4}{5}",
               self.red, self.green, self.blue,
               format!("{:01$x}", self.red, 2),
               format!("{:01$x}", self.green, 2),
               format!("{:01$x}", self.blue, 2))
    }
// `f` is a buffer, this method must write the formatted string into it
`f` is a buffer, this method must write the formatted string into it
` f ` is a buffer this method must write the formatted string into it
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
        // RGB (128, 255, 9) 0x80FF5A  0x{:>02X}{:>02X}{:>02X}
        // I am not very happy with this solution. I think this can be done in a better way.
        write!(f, "RGB ({0}, {1}, {2}) 0x{3}{4}{5}",
               self.red, self.green, self.blue,
               format!("{:01$x}", self.red, 2),
               format!("{:01$x}", self.green, 2),
               format!("{:01$x}", self.blue, 2))
    }
fn fmt ( & self , f : & mut Formatter ) -> fmt :: Result { // RGB (128, 255, 9) 0x80FF5A  0x{:>02X}{:>02X}{:>02X} // I am not very happy with this solution. I think this can be done in a better way. write ! ( f " " self red self green self blue format ( " " self red 2 ) format ( " " self green 2 ) format ( " " self blue 2 ) ) }
`f` is a buffer, this method must write the formatted string into it
` f ` is a buffer this method must write the formatted string into it
&self
f
&mut Formatter
&self
f
&mut Formatter