Trait winnow::error::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

Object Safety§

This trait is not object safe.

Implementors§