pub trait ToAnsiString {
// Required method
fn to_ansi_string(
&self,
mode: AnsiMode,
foreground_background: ForegroundBackground,
) -> String;
}Required Methods§
Sourcefn to_ansi_string(
&self,
mode: AnsiMode,
foreground_background: ForegroundBackground,
) -> String
fn to_ansi_string( &self, mode: AnsiMode, foreground_background: ForegroundBackground, ) -> String
Converts RGB to ANSI escape code.