Trait diny_core::backend::Format[][src]

pub trait Format {
    type Error: From<Error>;
    fn invalid_input_err() -> Self::Error;
fn invalid_data_err() -> Self::Error; }
Expand description

Base trait common to all formatters.

Provides the minimal required support for handling the errors encountered during encoding and decoding operations.

Associated Types

The type of errors that can occur during serialization and deserialization

Required methods

The error to return when an internal serialization contract has been violated

The error to return when a data contract has been violated

Implementors