[−][src]Struct tree_sitter::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]
&mut self,
input: impl AsRef<[u8]>,
old_tree: Option<&Tree>
) -> Option<Tree>
pub fn parse_utf16(
&mut self,
input: impl AsRef<[u16]>,
old_tree: Option<&Tree>
) -> Option<Tree>
[src]
&mut self,
input: impl AsRef<[u16]>,
old_tree: Option<&Tree>
) -> Option<Tree>
pub fn parse_with<'a, T: FnMut(usize, Point) -> &'a [u8]>(
&mut self,
input: &mut T,
old_tree: Option<&Tree>
) -> Option<Tree>
[src]
&mut self,
input: &mut T,
old_tree: Option<&Tree>
) -> Option<Tree>
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]
&mut self,
input: &mut T,
old_tree: Option<&Tree>
) -> Option<Tree>
pub fn reset(&mut self)
[src]
pub fn timeout_micros(&self) -> u64
[src]
pub fn set_timeout_micros(&mut self, timeout_micros: u64)
[src]
pub fn set_included_ranges(&mut self, ranges: &[Range])
[src]
pub unsafe fn cancellation_flag(&self) -> Option<&AtomicUsize>
[src]
pub unsafe fn set_cancellation_flag(&self, flag: Option<&AtomicUsize>)
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,