Struct sway_error::lex_error::LexError
source · [−]pub struct LexError {
pub span: Span,
pub kind: LexErrorKind,
}
Fields
span: Span
kind: LexErrorKind
Implementations
Trait Implementations
sourceimpl Error for LexError
impl Error for LexError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialOrd<LexError> for LexError
impl PartialOrd<LexError> for LexError
sourcefn partial_cmp(&self, other: &LexError) -> Option<Ordering>
fn partial_cmp(&self, other: &LexError) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl Eq for LexError
impl StructuralEq for LexError
impl StructuralPartialEq for LexError
Auto Trait Implementations
impl RefUnwindSafe for LexError
impl Send for LexError
impl Sync for LexError
impl Unpin for LexError
impl UnwindSafe for LexError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more