[−][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]
&mut self,
file: &impl AsRawFd
)
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 set_operation_limit(&mut self, limit: usize)
[src]
pub fn set_included_ranges(&mut self, ranges: &[Range])
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,