pub struct HighlightConfig {
pub max_injection_depth: u32,
pub html_format: HtmlFormat,
}Expand description
Configuration for highlighting.
Fields§
§max_injection_depth: u32Maximum depth for processing language injections.
0: No injections (just primary language)3: Default, handles most cases- Higher: For deeply nested content
html_format: HtmlFormatHTML output format (custom elements vs class-based spans).
Trait Implementations§
Source§impl Clone for HighlightConfig
impl Clone for HighlightConfig
Source§fn clone(&self) -> HighlightConfig
fn clone(&self) -> HighlightConfig
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 moreSource§impl Debug for HighlightConfig
impl Debug for HighlightConfig
Auto Trait Implementations§
impl Freeze for HighlightConfig
impl RefUnwindSafe for HighlightConfig
impl Send for HighlightConfig
impl Sync for HighlightConfig
impl Unpin for HighlightConfig
impl UnsafeUnpin for HighlightConfig
impl UnwindSafe for HighlightConfig
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