pub struct Theme { /* private fields */ }Expand description
A theme defining colors and modifiers to be used for syntax highlighting.
Implementations§
Source§impl Theme
impl Theme
Sourcepub fn from_helix(data: &str) -> Result<Self, Error>
pub fn from_helix(data: &str) -> Result<Self, Error>
Load theme from a Helix compatible theme
description stored in data.
§Errors
If the theme cannot be parsed either because it is not a TOML file or does not adhere to
the Helix syntax expectations, this function returns an Error.
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
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