pub fn colored() -> Self {
        let mut info = ColorSpec::new();
        let mut warning = ColorSpec::new();
        let mut error = ColorSpec::new();
        let mut linenr = ColorSpec::new();
        let mut filename = ColorSpec::new();
        let content = ColorSpec::new();
        info.set_bold(true);
        warning.set_bold(true).set_fg(Some(Color::Yellow));
        error.set_bold(true).set_fg(Some(Color::Red));
        linenr.set_bold(true).set_fg(Some(Color::Blue));
        filename.set_bold(true);
        Self {
            info,
            warning,
            error,
            linenr,
            filename,
            content,
        }
    }
/// Get a default rustc-like colored stylesheet
Get a default rustc-like colored stylesheet
Get a default rustc - like colored stylesheet
pub fn colored() -> Self {
        let mut info = ColorSpec::new();
        let mut warning = ColorSpec::new();
        let mut error = ColorSpec::new();
        let mut linenr = ColorSpec::new();
        let mut filename = ColorSpec::new();
        let content = ColorSpec::new();
        info.set_bold(true);
        warning.set_bold(true).set_fg(Some(Color::Yellow));
        error.set_bold(true).set_fg(Some(Color::Red));
        linenr.set_bold(true).set_fg(Some(Color::Blue));
        filename.set_bold(true);
        Self {
            info,
            warning,
            error,
            linenr,
            filename,
            content,
        }
    }
pub fn colored ( ) -> Self { let mut info = ColorSpec :: new ( ) ; let mut warning = ColorSpec :: new ( ) ; let mut error = ColorSpec :: new ( ) ; let mut linenr = ColorSpec :: new ( ) ; let mut filename = ColorSpec :: new ( ) ; let content = ColorSpec :: new ( ) ; info . set_bold ( true ) ; warning . set_bold ( true ) . set_fg ( Some ( Color :: Yellow ) ) ; error . set_bold ( true ) . set_fg ( Some ( Color :: Red ) ) ; linenr . set_bold ( true ) . set_fg ( Some ( Color :: Blue ) ) ; filename . set_bold ( true ) ; Self { info , warning , error , linenr , filename , content , } }
Get a default rustc-like colored stylesheet
Get a default rustc - like colored stylesheet