pub struct RecoveryLog { /* private fields */ }Expand description
Tracks all recovery events during parsing.
Implementations§
Source§impl RecoveryLog
impl RecoveryLog
pub fn new() -> Self
pub fn record(&mut self, pos: usize, decision: RecoveryDecision)
pub fn count(&self) -> usize
pub fn strategies_used(&self) -> Vec<RecoveryStrategy>
pub fn abandon_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecoveryLog
impl RefUnwindSafe for RecoveryLog
impl Send for RecoveryLog
impl Sync for RecoveryLog
impl Unpin for RecoveryLog
impl UnsafeUnpin for RecoveryLog
impl UnwindSafe for RecoveryLog
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