Enum combine::error::UnexpectedParse [−][src]
pub enum UnexpectedParse {
Eoi,
Unexpected,
}Variants
Trait Implementations
impl<Item, Range, Position> ParseError<Item, Range, Position> for UnexpectedParse where
Position: Default,
impl<Item, Range, Position> ParseError<Item, Range, Position> for UnexpectedParse where
Position: Default,
type StreamError = Self
Creates a ParseError from a single Self::StreamError
Sets the position of this ParseError
Adds a StreamError to self. Read more
fn set_expected<F>(self_: &mut Tracked<Self>, info: Self::StreamError, f: F) where
F: FnOnce(&mut Tracked<Self>),
fn set_expected<F>(self_: &mut Tracked<Self>, info: Self::StreamError, f: F) where
F: FnOnce(&mut Tracked<Self>),
Sets info as the only Expected error of self
Does a best-effort conversion of self into another ParseError
Merges two errors. If they exist at the same position the errors of other are
added to self (using the semantics of add). If they are not at the same
position the error furthest ahead are returned, ignoring the other ParseError. Read more
Removes any expected errors currently in self
impl<Item, Range, Position> ParseErrorInto<Item, Range, Position> for UnexpectedParse where
Position: Default,
impl<Item, Range, Position> ParseErrorInto<Item, Range, Position> for UnexpectedParse where
Position: Default,
fn into_other_error<T, Item2, Range2, Position2>(self) -> T where
T: ParseError<Item2, Range2, Position2>,
Item2: From<Item>,
Range2: From<Range>,
Position2: From<Position>,
Converts self into a different StreamError type. Read more
fn into_other_error<T, Item2, Range2>(self) -> T where
T: StreamError<Item2, Range2>,
Item2: From<Item>,
Range2: From<Range>,
Auto Trait Implementations
impl RefUnwindSafe for UnexpectedParse
impl Send for UnexpectedParse
impl Sync for UnexpectedParse
impl Unpin for UnexpectedParse
impl UnwindSafe for UnexpectedParse
Blanket Implementations
Mutably borrows from an owned value. Read more