Struct tree_sitter_facade::Parser[][src]

pub struct Parser { /* fields omitted */ }

Implementations

impl Parser[src]

pub fn new() -> Result<Self, ParserError>[src]

pub unsafe fn cancellation_flag(&self) -> Option<&AtomicUsize>[src]

pub fn language(&self) -> Option<Language>[src]

pub fn logger(&self) -> Option<LoggerReturn<'_, '_>>[src]

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

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

pub fn parse_utf16_with<T>(
    &mut self,
    callback: impl FnMut(u32, Point) -> T,
    old_tree: Option<&Tree>
) -> Result<Option<Tree>, ParserError> where
    T: AsRef<[u16]>, 
[src]

pub fn parse_with<T>(
    &mut self,
    callback: impl FnMut(u32, Point) -> T + 'static,
    old_tree: Option<&Tree>
) -> Result<Option<Tree>, ParserError> where
    T: AsRef<[u8]>, 
[src]

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

pub fn reset(&mut self)[src]

pub unsafe fn set_cancellation_flag(&mut self, flag: Option<&AtomicUsize>)[src]

pub fn set_included_ranges(
    &mut self,
    ranges: &[Range]
) -> Result<(), IncludedRangesError>
[src]

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

pub fn set_logger(&mut self, logger: Option<Logger<'static>>)[src]

pub fn set_timeout_micros(&mut self, timeout_micros: f64)[src]

pub fn stop_printing_dot_graphs(&mut self)[src]

pub fn timeout_micros(&self) -> f64[src]

Trait Implementations

impl From<Parser> for Parser[src]

fn from(inner: Parser) -> Self[src]

Performs the conversion.

Auto Trait Implementations

impl RefUnwindSafe for Parser

impl Send for Parser

impl !Sync for Parser

impl Unpin for Parser

impl UnwindSafe for Parser

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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

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

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.