Enum combine::error::StringStreamError
source · pub enum StringStreamError {
UnexpectedParse,
Eoi,
CharacterBoundary,
}
Variants§
Trait Implementations§
source§impl Clone for StringStreamError
impl Clone for StringStreamError
source§fn clone(&self) -> StringStreamError
fn clone(&self) -> StringStreamError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StringStreamError
impl Debug for StringStreamError
source§impl Display for StringStreamError
impl Display for StringStreamError
source§impl<Item, Range, Position> ParseError<Item, Range, Position> for StringStreamErrorwhere
Position: Default,
impl<Item, Range, Position> ParseError<Item, Range, Position> for StringStreamErrorwhere Position: Default,
type StreamError = StringStreamError
source§fn from_error(_: Position, err: Self::StreamError) -> Self
fn from_error(_: Position, err: Self::StreamError) -> Self
Creates a
ParseError
from a single Self::StreamError
source§fn set_position(&mut self, _position: Position)
fn set_position(&mut self, _position: Position)
Sets the position of this
ParseError
source§fn add(&mut self, err: Self::StreamError)
fn add(&mut self, err: Self::StreamError)
source§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
fn is_unexpected_end_of_input(&self) -> bool
source§fn into_other<T>(self) -> Twhere
T: ParseError<Item, Range, Position>,
fn into_other<T>(self) -> Twhere T: ParseError<Item, Range, Position>,
Does a best-effort conversion of
self
into another ParseError
source§fn merge(self, other: Self) -> Self
fn merge(self, other: Self) -> Self
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
.fn add_expected(&mut self, info: Info<Item, Range>)
fn add_unexpected(&mut self, info: Info<Item, Range>)
fn add_message(&mut self, info: Info<Item, Range>)
source§fn clear_expected(&mut self)
fn clear_expected(&mut self)
Removes any expected errors currently in
self
source§impl PartialEq<StringStreamError> for StringStreamError
impl PartialEq<StringStreamError> for StringStreamError
source§fn eq(&self, other: &StringStreamError) -> bool
fn eq(&self, other: &StringStreamError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.