Struct tree_sitter::Parser
source · pub struct Parser(_);
Implementations
sourceimpl Parser
impl Parser
pub fn new() -> Parser
pub fn set_language(&mut self, language: Language) -> Result<(), String>
pub fn logger(&self) -> Option<&Box<dyn FnMut(LogType, &str) + '_>>
pub fn set_logger(&mut self, logger: Option<Box<dyn FnMut(LogType, &str) + '_>>)
pub fn parse_str(&mut self, input: &str, old_tree: Option<&Tree>) -> Option<Tree>
pub fn parse_utf8<'a, T: FnMut(u32, Point) -> &'a [u8]>(
&mut self,
input: &mut T,
old_tree: Option<&Tree>
) -> Option<Tree>
pub fn parse_utf16<'a, T: 'a + FnMut(u32, Point) -> &'a [u16]>(
&mut self,
input: &mut T,
old_tree: Option<&Tree>
) -> Option<Tree>
pub fn parse_utf8_io(
&mut self,
input: impl Read + Seek,
old_tree: Option<&Tree>
) -> Result<Option<Tree>>
pub fn reset(&mut self)
pub fn set_operation_limit(&mut self, limit: usize)
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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