Enum brane_dsl::errors::ParseError
source · pub enum ParseError {
ScanError {
err: String,
},
ScannerError {
err: String,
},
LeftoverSourceError,
ParseError {
lang: Language,
err: String,
},
ParserError {
lang: Language,
err: String,
},
Eof {
lang: Language,
err: String,
},
LeftoverTokensError {
lang: Language,
},
}
Expand description
Defines errors that occur in the topmost process of conveting raw readers into Programs.
Variants§
ScanError
The scanner failed to scan.
ScannerError
Some non-Nom error occurred while scanning.
LeftoverSourceError
Not all source was parsed (indicating a syntax error).
ParseError
The parser failed to parse.
ParserError
Some non-Nom error occurred while parsing.
Eof
We did not have enough tokens to make an informed decision (i.e., an error occurred).
LeftoverTokensError
Not all tokens were parsed (indicating an error).
Trait Implementations§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request