pub struct Syntaxer {
pub syntax_set: SyntaxSet,
pub theme_set: ThemeSet,
}
Expand description
wrap heavy to initialize syntect things
Fields§
§syntax_set: SyntaxSet
§theme_set: ThemeSet
Implementations§
source§impl Syntaxer
impl Syntaxer
pub fn available_themes(&self) -> Keys<'_, String, Theme>
pub fn highlighter_for( &self, path: &Path, con: &AppContext ) -> Option<HighlightLines<'_>>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Syntaxer
impl Send for Syntaxer
impl Sync for Syntaxer
impl Unpin for Syntaxer
impl UnwindSafe for Syntaxer
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.