pub struct SyntectHighlighter { /* private fields */ }Expand description
Syntax highlighter backed by syntect, implementing comrak’s adapter trait.
Implementations§
Trait Implementations§
Source§impl SyntaxHighlighterAdapter for SyntectHighlighter
impl SyntaxHighlighterAdapter for SyntectHighlighter
Source§fn write_highlighted(
&self,
output: &mut dyn Write,
lang: Option<&str>,
code: &str,
) -> Result<()>
fn write_highlighted( &self, output: &mut dyn Write, lang: Option<&str>, code: &str, ) -> Result<()>
Generates a syntax highlighted HTML output. Read more
Auto Trait Implementations§
impl !Freeze for SyntectHighlighter
impl RefUnwindSafe for SyntectHighlighter
impl Send for SyntectHighlighter
impl Sync for SyntectHighlighter
impl Unpin for SyntectHighlighter
impl UnsafeUnpin for SyntectHighlighter
impl UnwindSafe for SyntectHighlighter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more