pub struct Parser { /* private fields */ }Implementations§
Source§impl Parser
impl Parser
pub fn new() -> Result<Self, ParserError>
pub unsafe fn cancellation_flag(&self) -> Option<&AtomicUsize>
pub fn language(&self) -> Option<Language>
pub fn logger(&self) -> Option<LoggerReturn<'_, '_>>
pub fn parse( &mut self, text: impl AsRef<[u8]>, old_tree: Option<&Tree>, ) -> Result<Option<Tree>, ParserError>
pub fn parse_utf16( &mut self, text: impl AsRef<[u16]>, old_tree: Option<&Tree>, ) -> Result<Option<Tree>, ParserError>
pub fn parse_utf16_with<T>( &mut self, callback: impl FnMut(u32, Point) -> T, old_tree: Option<&Tree>, ) -> Result<Option<Tree>, ParserError>
pub fn parse_with<T>( &mut self, callback: impl FnMut(u32, Point) -> T + 'static, old_tree: Option<&Tree>, ) -> Result<Option<Tree>, ParserError>
pub fn print_dot_graphs(&mut self, file: &impl AsRawFd)
pub fn reset(&mut self)
pub unsafe fn set_cancellation_flag(&mut self, flag: Option<&AtomicUsize>)
pub fn set_included_ranges( &mut self, ranges: &[Range], ) -> Result<(), IncludedRangesError>
pub fn set_language(&mut self, language: &Language) -> Result<(), LanguageError>
pub fn set_logger(&mut self, logger: Option<Logger<'static>>)
pub fn set_timeout_micros(&mut self, timeout_micros: f64)
pub fn stop_printing_dot_graphs(&mut self)
pub fn timeout_micros(&self) -> f64
Trait Implementations§
impl RefUnwindSafe for Parser
impl Send for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more