pub struct TemplateParser { /* private fields */ }Expand description
A reusable hemplate parser for latency-sensitive or repeated parsing.
Constructing and configuring tree-sitter is materially more expensive than parsing small templates. Keep one parser per sequential parsing context, such as an editor document store.
Implementations§
Auto Trait Implementations§
impl Forget for TemplateParser
impl Freeze for TemplateParser
impl Move for TemplateParser
impl RefUnwindSafe for TemplateParser
impl Send for TemplateParser
impl Sync for TemplateParser
impl Unpin for TemplateParser
impl UnsafeUnpin for TemplateParser
impl UnwindSafe for TemplateParser
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