pub struct TokenTheme(/* private fields */);Expand description
A parsed highlight theme — opaque over syntect’s Theme. Clone is cheap
(a syntect Theme is a small style table), so an integrating widget can
retain a theme and re-apply it across a document reload or grammar swap.
Implementations§
Source§impl TokenTheme
impl TokenTheme
Sourcepub fn from_tm_theme(s: &str) -> Result<Self, ThemeError>
pub fn from_tm_theme(s: &str) -> Result<Self, ThemeError>
Parse a .tmTheme (plist).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenTheme
impl RefUnwindSafe for TokenTheme
impl Send for TokenTheme
impl Sync for TokenTheme
impl Unpin for TokenTheme
impl UnsafeUnpin for TokenTheme
impl UnwindSafe for TokenTheme
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