Struct serde_lexpr::parse::Error
source · pub struct Error { /* private fields */ }
Expand description
This type represents the possible errors when parsing S-expression data.
Implementations§
source§impl Error
impl Error
sourcepub fn classify(&self) -> Category
pub fn classify(&self) -> Category
Categorizes the cause of this error.
Category::Io
- failure to read or write bytes on an IO streamCategory::Syntax
- input that is not a syntactically valid S-experssionCategory::Eof
- unexpected end of the input data
sourcepub fn is_io(&self) -> bool
pub fn is_io(&self) -> bool
Returns true if this error was caused by a failure to read or write bytes on an IO stream.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()