ToAnsiString

Trait ToAnsiString 

Source
pub trait ToAnsiString {
    // Required method
    fn to_ansi_string(
        &self,
        mode: AnsiMode,
        foreground_background: ForegroundBackground,
    ) -> String;
}

Required Methods§

Source

fn to_ansi_string( &self, mode: AnsiMode, foreground_background: ForegroundBackground, ) -> String

Converts RGB to ANSI escape code.

Implementations on Foreign Types§

Source§

impl ToAnsiString for SrgbLuma<u8>

Source§

fn to_ansi_string( &self, mode: AnsiMode, foreground_background: ForegroundBackground, ) -> String

Source§

impl ToAnsiString for Srgb<u8>

Source§

fn to_ansi_string( &self, mode: AnsiMode, foreground_background: ForegroundBackground, ) -> String

Implementors§