Enum fuzzy_pickles::ErrorDetail
source · pub enum ErrorDetail {
Tokenizer(ErrorDetail),
Parser(ErrorDetail),
}
Expand description
Information about a tokenization or parsing error
Variants§
Tokenizer(ErrorDetail)
Parser(ErrorDetail)
Implementations§
source§impl ErrorDetail
impl ErrorDetail
sourcepub fn with_text<'a>(&'a self, text: &'a str) -> ErrorDetailText<'a>
pub fn with_text<'a>(&'a self, text: &'a str) -> ErrorDetailText<'a>
Enhance the error with the source code
Trait Implementations§
source§impl Debug for ErrorDetail
impl Debug for ErrorDetail
source§impl From<ErrorDetail> for ErrorDetail
impl From<ErrorDetail> for ErrorDetail
source§fn from(other: ErrorDetail) -> Self
fn from(other: ErrorDetail) -> Self
Converts to this type from the input type.
source§impl From<ErrorDetail> for ErrorDetail
impl From<ErrorDetail> for ErrorDetail
source§fn from(other: ErrorDetail) -> Self
fn from(other: ErrorDetail) -> Self
Converts to this type from the input type.