Struct sway_error::lex_error::LexError
source · pub struct LexError {
pub span: Span,
pub kind: LexErrorKind,
}
Fields§
§span: Span
§kind: LexErrorKind
Implementations§
Trait Implementations§
source§impl Error for LexError
impl Error for LexError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<LexError> for LexError
impl PartialEq<LexError> for LexError
source§impl PartialOrd<LexError> for LexError
impl PartialOrd<LexError> for LexError
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