Trait toml_test_harness::Encoder

source ·
pub trait Encoder {
    // Required methods
    fn encode(&self, data: Decoded) -> Result<String, Error>;
    fn name(&self) -> &str;

    // Provided method
    fn verify_valid_case(
        &self,
        decoded: &[u8],
        fixture: &dyn Decoder,
    ) -> Result<(), Error> { ... }
}

Required Methods§

source

fn encode(&self, data: Decoded) -> Result<String, Error>

source

fn name(&self) -> &str

Provided Methods§

source

fn verify_valid_case( &self, decoded: &[u8], fixture: &dyn Decoder, ) -> Result<(), Error>

Implementors§