pub struct HighlightingHtmlRendererOptions {
pub theme: &'static str,
pub mode: HighlightingMode,
pub theme_set: Option<Rc<ThemeSet>>,
}Expand description
Options for the HighlightingHtmlRenderer.
Fields§
§theme: &'static strThe name of the syntax highlighting theme to use.
This value is only used if the mode is set to HighlightingMode::Attribute. If the theme
is not found, it falls back to “InspiredGitHub”.
mode: HighlightingModeThe mode to use for syntax highlighting. This determines how the HTML output is structured.
theme_set: Option<Rc<ThemeSet>>An optional ThemeSet to use for syntax highlighting. If not provided, the default themes
will be used.
Trait Implementations§
Source§impl Clone for HighlightingHtmlRendererOptions
impl Clone for HighlightingHtmlRendererOptions
Source§fn clone(&self) -> HighlightingHtmlRendererOptions
fn clone(&self) -> HighlightingHtmlRendererOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl RendererOptions for HighlightingHtmlRendererOptions
Auto Trait Implementations§
impl Freeze for HighlightingHtmlRendererOptions
impl RefUnwindSafe for HighlightingHtmlRendererOptions
impl !Send for HighlightingHtmlRendererOptions
impl !Sync for HighlightingHtmlRendererOptions
impl Unpin for HighlightingHtmlRendererOptions
impl UnsafeUnpin for HighlightingHtmlRendererOptions
impl UnwindSafe for HighlightingHtmlRendererOptions
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