Skip to main content

RichSyntaxHighlighter

Trait RichSyntaxHighlighter 

Source
pub trait RichSyntaxHighlighter {
    // Required method
    fn highlight(
        &self,
        language: Option<&str>,
        source: &str,
    ) -> Vec<RichSyntaxSpan>;
}

Required Methods§

Source

fn highlight(&self, language: Option<&str>, source: &str) -> Vec<RichSyntaxSpan>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§