formattable 0.0.3

Ergonomically support formatted output
Documentation
//! Error type for crate.

/// Wrapper around the various errors that may be returned during the
/// serialization process.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Errors from writing to things implementing std::io::Write.
    #[error(transparent)]
    Io(#[from] std::io::Error),
    /// Errors from `serde_json`.
    #[cfg(feature = "json")]
    #[error(transparent)]
    Json(#[from] serde_json::Error),

    /// Errors from `toml`.
    #[cfg(feature = "toml")]
    #[error(transparent)]
    Toml(#[from] toml::ser::Error),

    /// Errors from `serde_yaml`.
    #[cfg(feature = "yaml")]
    #[error(transparent)]
    Yaml(#[from] serde_yaml::Error),
}