pub enum ParseMode {
FaultTolerant,
Fast,
}Expand description
Controls whether the A* search performs fault-tolerant error recovery.
Variants§
FaultTolerant
Full fault-tolerant mode: explores error-recovery branches, tracks role-agreement fingerprints, maintains a best-at-EOF fallback, and applies an incremental heuristic. Use when the document may contain errors and a best-effort CST is required.
Fast
Fast mode: no error-recovery branches, no prevInfo fingerprints, no
heuristic precomputation, no best-at-EOF fallback. Returns None
from consume if the document contains any error. Use when the
document is known to be correct and maximum throughput is desired.
Trait Implementations§
impl Copy for ParseMode
impl Eq for ParseMode
impl StructuralPartialEq for ParseMode
Auto Trait Implementations§
impl Freeze for ParseMode
impl RefUnwindSafe for ParseMode
impl Send for ParseMode
impl Sync for ParseMode
impl Unpin for ParseMode
impl UnsafeUnpin for ParseMode
impl UnwindSafe for ParseMode
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