Enum combine::stream::read::Error [−][src]
pub enum Error { Unexpected, EndOfInput, Io(Error), }
Variants
Io(Error)
Trait Implementations
impl<Item, Range, Position> ParseError<Item, Range, Position> for Error where
Position: Default,
impl<Item, Range, Position> ParseError<Item, Range, Position> for Error 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
Converts self
into a different StreamError
type. Read more