Expand description
wrap heavy to initialize syntect things
Fields
syntax_set: SyntaxSet
theme_set: ThemeSet
Implementations
sourceimpl Syntaxer
impl Syntaxer
pub fn highlighter_for<'s, 'p>(
&'s self,
path: &'p Path,
con: &AppContext
) -> Option<HighlightLines<'s>>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more