pub fn prettify(&self, color: Color) -> ColoredString {
        let r = (color.red * 256.0) as u8;
        let g = (color.green * 256.0) as u8;
        let b = (color.blue * 256.0) as u8;
        format!("{}", self).truecolor(r, g, b)
    }
/// For pretty-printing the host name.
/// Surrounds with brackets and colors it with a random color.
For pretty-printing the host name.
Surrounds with brackets and colors it with a random color.
For pretty - printing the host name . Surrounds with brackets and colors it with a random color .
pub fn prettify(&self, color: Color) -> ColoredString {
        let r = (color.red * 256.0) as u8;
        let g = (color.green * 256.0) as u8;
        let b = (color.blue * 256.0) as u8;
        format!("{}", self).truecolor(r, g, b)
    }
pub fn prettify ( & self , color : Color ) -> ColoredString { let r = ( color . red * 256.0 ) as u8 ; let g = ( color . green * 256.0 ) as u8 ; let b = ( color . blue * 256.0 ) as u8 ; format ! ( " " self ) . truecolor ( r , g , b ) }
For pretty-printing the host name.
For pretty - printing the host name .
&self
color
Color
&self
color
Color