Skip to main content

ModalError

Trait ModalError 

Source
pub trait ModalError {
    // Required methods
    fn cut(self) -> Self;
    fn backtrack(self) -> Self;
}
Expand description

Manipulate the how parsers respond to this error

Required Methods§

Source

fn cut(self) -> Self

Prevent backtracking, bubbling the error up to the top

Source

fn backtrack(self) -> Self

Enable backtracking support

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§