pub struct CodeHighlighting {
pub highlighter: Arc<dyn CodeHighlighter>,
pub theme: Option<String>,
}Expand description
A console-wide default CodeHighlighter and the theme to use with it.
See ConsoleCodeHighlighting.
Fields§
§highlighter: Arc<dyn CodeHighlighter>§theme: Option<String>One of highlighter’s themes; None is its default theme.
Trait Implementations§
Source§impl Clone for CodeHighlighting
impl Clone for CodeHighlighting
Auto Trait Implementations§
impl !RefUnwindSafe for CodeHighlighting
impl !UnwindSafe for CodeHighlighting
impl Freeze for CodeHighlighting
impl Send for CodeHighlighting
impl Sync for CodeHighlighting
impl Unpin for CodeHighlighting
impl UnsafeUnpin for CodeHighlighting
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