pub struct Settings {
    pub theme: Theme,
    pub token: String,
}Expand description
The settings of a Highlighter.
Fields§
§theme: ThemeThe Theme of the Highlighter.
It dictates the color scheme that will be used for highlighting.
token: StringThe extension of the file or the name of the language to highlight.
The Highlighter will use the token to automatically determine
the grammar to use for highlighting.
Trait Implementations§
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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