serde 0.9.12

A generic serialization/deserialization framework
Documentation
//! A stand-in for `std::error`
use core::fmt::{Debug, Display};

/// A stand-in for `std::error::Error`, which requires no allocation.
pub trait Error: Debug + Display {
    /// A short description of the error.
    ///
    /// The description should not contain newlines or sentence-ending
    /// punctuation, to facilitate embedding in larger user-facing
    /// strings.
    fn description(&self) -> &str;

    /// The lower-level cause of this error, if any.
    fn cause(&self) -> Option<&Error> {
        None
    }
}