pub struct ParserPool { /* private fields */ }Expand description
A pool of tree-sitter parsers for concurrent access.
Tree-sitter parsers are not Send, so each parse operation needs its own
parser instance. This pool recycles parsers to avoid repeated allocation.
Implementations§
Source§impl ParserPool
impl ParserPool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ParserPool
impl Forget for ParserPool
impl Move for ParserPool
impl RefUnwindSafe for ParserPool
impl Send for ParserPool
impl Sync for ParserPool
impl Unpin for ParserPool
impl UnsafeUnpin for ParserPool
impl UnwindSafe for ParserPool
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