pub struct HighlightConfig {
pub highlighted_lines: Vec<usize>,
pub rainbow: bool,
}Expand description
Highlighting options used by the engine and renderers.
Fields§
§highlighted_lines: Vec<usize>One-based source lines to emphasize.
rainbow: boolCollect bracket nesting depths from the language rainbow query. Defaults to true.
Trait Implementations§
Source§impl Clone for HighlightConfig
impl Clone for HighlightConfig
Source§impl Debug for HighlightConfig
impl Debug for HighlightConfig
Auto Trait Implementations§
impl Forget for HighlightConfig
impl Freeze for HighlightConfig
impl Move 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