pub enum SszError {
Token(TokenError),
TokenTree(ToktrError),
Parser(ParseError),
TyResolver(ResolverError),
SchemaGen(SchemaError),
}
Expand description
Represents an error from any of the phases of parsing a raw schema.
Variants§
Token(TokenError)
Error from the tokenizer.
TokenTree(ToktrError)
Error from the token tree parser.
Parser(ParseError)
Error from the AST parser.
TyResolver(ResolverError)
Error from the type resolver.
SchemaGen(SchemaError)
Error from the schema generator.
Trait Implementations§
Source§impl Error for SszError
impl Error for SszError
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 SszError
impl RefUnwindSafe for SszError
impl Send for SszError
impl Sync for SszError
impl Unpin for SszError
impl UnwindSafe for SszError
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