Trait ModalError
pub trait ModalError {
// Required methods
fn cut(self) -> Self;
fn backtrack(self) -> Self;
}
Available on crate feature
dep_winnow
only.Expand description
Manipulate the how parsers respond to this error
Required Methods§
fn cut(self) -> Self
fn cut(self) -> Self
Prevent backtracking, bubbling the error up to the top
fn backtrack(self) -> Self
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", so this trait is not object safe.