pub struct SyntectTheme { /* private fields */ }Expand description
A syntax theme backed by syntect’s Theme.
Implementations§
Trait Implementations§
Source§impl SyntaxTheme for SyntectTheme
impl SyntaxTheme for SyntectTheme
Source§fn get_style(&self, style: &SyntectStyle) -> Style
fn get_style(&self, style: &SyntectStyle) -> Style
Get the style for a token (foreground, background).
Source§fn get_background_style(&self) -> Style
fn get_background_style(&self) -> Style
Get the background style for the theme.
Source§fn syntect_theme(&self) -> Option<&Theme>
fn syntect_theme(&self) -> Option<&Theme>
Get the underlying syntect Theme, if available.
Auto Trait Implementations§
impl Freeze for SyntectTheme
impl RefUnwindSafe for SyntectTheme
impl Send for SyntectTheme
impl Sync for SyntectTheme
impl Unpin for SyntectTheme
impl UnwindSafe for SyntectTheme
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