winnow::error

Trait ErrorConvert

Source
pub trait ErrorConvert<E> {
    // Required method
    fn convert(self) -> E;
}
Expand description

Equivalent of From implementation to avoid orphan rules in bits parsers

Required Methods§

Source

fn convert(self) -> E

Transform to another error type

Implementations on Foreign Types§

Source§

impl ErrorConvert<()> for ()

Implementors§