Struct regex_syntax::hir::Error [−][src]
pub struct Error { /* fields omitted */ }
An error that can occur while translating an Ast
to a Hir
.
Implementations
impl Error
[src]
impl Error
[src]pub fn kind(&self) -> &ErrorKind
[src][−]
Return the type of this error.
pub fn pattern(&self) -> &str
[src][−]
The original pattern string in which this error occurred.
Every span reported by this error is reported in terms of this string.
pub fn span(&self) -> &Span
[src][−]
Return the span at which this error occurred.