IntoSkipOrFatal

Trait IntoSkipOrFatal 

Source
pub trait IntoSkipOrFatal {
    type Skip;
    type Fatal;

    // Required method
    fn into_skip_or_fatal(self) -> SkipOrFatal<Self::Skip, Self::Fatal>;
}
Expand description

Trait of error type of a component parser. It checks whether the error means “skip” or “fatal”.

Required Associated Types§

Source

type Skip

“Skip” means that the parent parser may either try to parse the next type of component or error,

Source

type Fatal

“Fatal” means that the parent parser should bail immediately.

Required Methods§

Source

fn into_skip_or_fatal(self) -> SkipOrFatal<Self::Skip, Self::Fatal>

Check whether the error returned from a component parser is skip or fatal.

Implementations on Foreign Types§

Source§

impl<Error> IntoSkipOrFatal for Option<Error>

Source§

type Skip = ()

Source§

type Fatal = Error

Source§

fn into_skip_or_fatal(self) -> SkipOrFatal<Self::Skip, Self::Fatal>

Implementors§

Source§

impl<Skip, Fatal> IntoSkipOrFatal for SkipOrFatal<Skip, Fatal>

Source§

type Skip = Skip

Source§

type Fatal = Fatal