Enum combine::error::UnexpectedParse [−][src]
pub enum UnexpectedParse {
Eoi,
Unexpected,
}Variants
EoiUnexpected
Trait Implementations
impl Clone for UnexpectedParse[src]
impl Clone for UnexpectedParsefn clone(&self) -> UnexpectedParse[src]
fn clone(&self) -> UnexpectedParseReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for UnexpectedParse[src]
impl Copy for UnexpectedParseimpl Debug for UnexpectedParse[src]
impl Debug for UnexpectedParsefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for UnexpectedParse[src]
impl PartialEq for UnexpectedParsefn eq(&self, other: &UnexpectedParse) -> bool[src]
fn eq(&self, other: &UnexpectedParse) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Display for UnexpectedParse[src]
impl Display for UnexpectedParsefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<Item, Range> StreamError<Item, Range> for UnexpectedParse[src]
impl<Item, Range> StreamError<Item, Range> for UnexpectedParsefn unexpected_token(_: Item) -> Self[src]
fn unexpected_token(_: Item) -> Selffn unexpected_range(_: Range) -> Self[src]
fn unexpected_range(_: Range) -> Selffn unexpected_message<T>(_: T) -> Self where
T: Display, [src]
fn unexpected_message<T>(_: T) -> Self where
T: Display, fn expected_token(_: Item) -> Self[src]
fn expected_token(_: Item) -> Selffn expected_range(_: Range) -> Self[src]
fn expected_range(_: Range) -> Selffn expected_message<T>(_: T) -> Self where
T: Display, [src]
fn expected_message<T>(_: T) -> Self where
T: Display, fn message_message<T>(_: T) -> Self where
T: Display, [src]
fn message_message<T>(_: T) -> Self where
T: Display, fn message_token(_: Item) -> Self[src]
fn message_token(_: Item) -> Selffn message_range(_: Range) -> Self[src]
fn message_range(_: Range) -> Selffn end_of_input() -> Self[src]
fn end_of_input() -> Selffn into_other<T>(self) -> T where
T: StreamError<Item, Range>, [src]
fn into_other<T>(self) -> T where
T: StreamError<Item, Range>, Converts self into a different StreamError type. Read more
fn unexpected(info: Info<Item, Range>) -> Self[src]
fn unexpected(info: Info<Item, Range>) -> Selffn unexpected_static_message(msg: &'static str) -> Self[src]
fn unexpected_static_message(msg: &'static str) -> Selffn expected(info: Info<Item, Range>) -> Self[src]
fn expected(info: Info<Item, Range>) -> Selffn expected_static_message(msg: &'static str) -> Self[src]
fn expected_static_message(msg: &'static str) -> Selffn message_static_message(msg: &'static str) -> Self[src]
fn message_static_message(msg: &'static str) -> Selffn message(info: Info<Item, Range>) -> Self[src]
fn message(info: Info<Item, Range>) -> Selffn other<E>(err: E) -> Self where
E: StdError + Send + Sync + 'static, [src]
fn other<E>(err: E) -> Self where
E: StdError + Send + Sync + 'static, impl<Item, Range, Position> ParseError<Item, Range, Position> for UnexpectedParse where
Position: Default, [src]
impl<Item, Range, Position> ParseError<Item, Range, Position> for UnexpectedParse where
Position: Default, type StreamError = Self
fn empty(_position: Position) -> Self[src]
fn empty(_position: Position) -> SelfConstructs an empty error. Read more
fn from_error(_: Position, err: Self::StreamError) -> Self[src]
fn from_error(_: Position, err: Self::StreamError) -> SelfCreates a ParseError from a single Self::StreamError
fn set_position(&mut self, _position: Position)[src]
fn set_position(&mut self, _position: Position)Sets the position of this ParseError
fn add(&mut self, err: Self::StreamError)[src]
fn add(&mut self, err: Self::StreamError)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>), [src]
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[src]
fn is_unexpected_end_of_input(&self) -> boolfn into_other<T>(self) -> T where
T: ParseError<Item, Range, Position>, [src]
fn into_other<T>(self) -> T where
T: ParseError<Item, Range, Position>, Does a best-effort conversion of self into another ParseError
fn merge(self, other: Self) -> Self[src]
fn merge(self, other: Self) -> SelfMerges 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
fn add_expected(&mut self, info: Info<Item, Range>)[src]
fn add_expected(&mut self, info: Info<Item, Range>)fn add_unexpected(&mut self, info: Info<Item, Range>)[src]
fn add_unexpected(&mut self, info: Info<Item, Range>)fn add_message(&mut self, info: Info<Item, Range>)[src]
fn add_message(&mut self, info: Info<Item, Range>)Auto Trait Implementations
impl Send for UnexpectedParse
impl Send for UnexpectedParseimpl Sync for UnexpectedParse
impl Sync for UnexpectedParse