pub struct Extractor { /* private fields */ }Expand description
One reusable extractor per (language, thread): parser and compiled query are pooled here, never rebuilt per file.
Implementations§
Source§impl Extractor
impl Extractor
pub fn new(spec: &'static LanguageSpec) -> Result<Self, ExtractError>
Auto Trait Implementations§
impl Freeze for Extractor
impl RefUnwindSafe for Extractor
impl Send for Extractor
impl Sync for Extractor
impl Unpin for Extractor
impl UnsafeUnpin for Extractor
impl UnwindSafe for Extractor
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