pub fn highlight(&mut self, line: &str) -> io::Result<()> {
        for (style, component) in self.highlighter.highlight(line, self.syntax_set) {
            self.out.set_color(&convert_style(style))?;
            write!(self.out, "{}", component)?;
        }
        Ok(())
    }
/// Write a single piece of highlighted text.
Write a single piece of highlighted text.
Write a single piece of highlighted text .
pub fn highlight(&mut self, line: &str) -> io::Result<()> {
        for (style, component) in self.highlighter.highlight(line, self.syntax_set) {
            self.out.set_color(&convert_style(style))?;
            write!(self.out, "{}", component)?;
        }
        Ok(())
    }
pub fn highlight ( & mut self , line : & str ) -> io :: Result < ( ) > { for ( style , component ) in self . highlighter . highlight ( line , self . syntax_set ) { self . out . set_color ( & convert_style ( style ) ) ? ; write ! ( self out " " component ) ? ; } Ok ( ( ) ) }
Write a single piece of highlighted text.
Write a single piece of highlighted text .
&mut self
line
&str
&mut self
line
&str