[][src]Struct tree_sitter::Parser

pub struct Parser(_);

Methods

impl Parser[src]

pub fn new() -> Parser[src]

pub fn set_language(&mut self, language: Language) -> Result<(), String>[src]

pub fn logger(&self) -> Option<&Box<dyn FnMut(LogType, &str) + 'a>>[src]

pub fn set_logger(&mut self, logger: Option<Box<dyn FnMut(LogType, &str) + 'a>>)[src]

pub fn print_dot_graphs(
    &mut self,
    file: &impl AsRawFd
)
[src]

pub fn stop_printing_dot_graphs(&mut self)[src]

pub fn parse(
    &mut self,
    input: impl AsRef<[u8]>,
    old_tree: Option<&Tree>
) -> Option<Tree>
[src]

pub fn parse_utf16(
    &mut self,
    input: impl AsRef<[u16]>,
    old_tree: Option<&Tree>
) -> Option<Tree>
[src]

pub fn parse_with<'a, T: FnMut(usize, Point) -> &'a [u8]>(
    &mut self,
    input: &mut T,
    old_tree: Option<&Tree>
) -> Option<Tree>
[src]

pub fn parse_utf16_with<'a, T: 'a + FnMut(usize, Point) -> &'a [u16]>(
    &mut self,
    input: &mut T,
    old_tree: Option<&Tree>
) -> Option<Tree>
[src]

pub fn reset(&mut self)[src]

pub fn set_operation_limit(&mut self, limit: usize)[src]

pub fn set_included_ranges(&mut self, ranges: &[Range])[src]

Trait Implementations

impl Send for Parser[src]

impl Drop for Parser[src]

Auto Trait Implementations

impl !Sync for Parser

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]