pub struct ErrorRecovery { /* private fields */ }Implementations§
Source§impl ErrorRecovery
impl ErrorRecovery
pub fn new(max_errors: usize) -> Self
pub fn can_recover(&self) -> bool
pub fn add_error(&mut self, error: ParserError)
pub fn errors(&self) -> &[ParserError]
pub fn clear_errors(&mut self)
pub fn error_count(&self) -> usize
pub fn has_errors(&self) -> bool
Trait Implementations§
Source§impl Debug for ErrorRecovery
impl Debug for ErrorRecovery
Auto Trait Implementations§
impl Freeze for ErrorRecovery
impl RefUnwindSafe for ErrorRecovery
impl Send for ErrorRecovery
impl Sync for ErrorRecovery
impl Unpin for ErrorRecovery
impl UnwindSafe for ErrorRecovery
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