Enum everscale_asm::ParserError
source · pub enum ParserError {
ExpectedFound {
span: Span,
found: Option<char>,
},
InvalidInt {
span: Span,
inner: ParseBigIntError,
},
InvalidStackRegister {
span: Span,
inner: Error,
},
InvalidControlRegister {
span: Span,
inner: Error,
},
InvalidSlice {
span: Span,
inner: Error,
},
UnknownError,
}
Variants§
Implementations§
Trait Implementations§
source§impl Debug for ParserError
impl Debug for ParserError
source§impl Display for ParserError
impl Display for ParserError
source§impl<'a> Error<'a, &'a str> for ParserError
impl<'a> Error<'a, &'a str> for ParserError
source§fn expected_found<Iter: IntoIterator<Item = Option<MaybeRef<'a, char>>>>(
_: Iter,
found: Option<MaybeRef<'a, char>>,
span: Span,
) -> Self
fn expected_found<Iter: IntoIterator<Item = Option<MaybeRef<'a, char>>>>( _: Iter, found: Option<MaybeRef<'a, char>>, span: Span, ) -> Self
Create a new error describing a conflict between expected inputs and that which was actually found. Read more
source§fn merge(self, _: Self) -> Self
fn merge(self, _: Self) -> Self
Merge two errors that point to the same input together, combining their information.
source§fn merge_expected_found<E>(
self,
expected: E,
found: Option<Maybe<<I as Input<'a>>::Token, &'a <I as Input<'a>>::Token>>,
span: <I as Input<'a>>::Span,
) -> Self
fn merge_expected_found<E>( self, expected: E, found: Option<Maybe<<I as Input<'a>>::Token, &'a <I as Input<'a>>::Token>>, span: <I as Input<'a>>::Span, ) -> Self
Fast path for
a.merge(Error::expected_found(...))
that may incur less overhead by, for example, reusing allocations.source§impl Error for ParserError
impl Error for ParserError
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()
Auto Trait Implementations§
impl Freeze for ParserError
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more