Enum ir_to_bytecode_syntax::syntax::ParseError
source · pub enum ParseError<L, E> {
InvalidToken {
location: L,
},
User {
location: L,
error: E,
},
}
Variants§
Trait Implementations§
source§impl<L: Clone, E: Clone> Clone for ParseError<L, E>
impl<L: Clone, E: Clone> Clone for ParseError<L, E>
source§fn clone(&self) -> ParseError<L, E>
fn clone(&self) -> ParseError<L, E>
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<L: Ord, E: Ord> Ord for ParseError<L, E>
impl<L: Ord, E: Ord> Ord for ParseError<L, E>
source§fn cmp(&self, other: &ParseError<L, E>) -> Ordering
fn cmp(&self, other: &ParseError<L, E>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<L: PartialEq, E: PartialEq> PartialEq<ParseError<L, E>> for ParseError<L, E>
impl<L: PartialEq, E: PartialEq> PartialEq<ParseError<L, E>> for ParseError<L, E>
source§fn eq(&self, other: &ParseError<L, E>) -> bool
fn eq(&self, other: &ParseError<L, E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<L: PartialOrd, E: PartialOrd> PartialOrd<ParseError<L, E>> for ParseError<L, E>
impl<L: PartialOrd, E: PartialOrd> PartialOrd<ParseError<L, E>> for ParseError<L, E>
source§fn partial_cmp(&self, other: &ParseError<L, E>) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseError<L, E>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more