Trait toml_test_harness::Decoder

source ·
pub trait Decoder {
    // Required methods
    fn decode(&self, data: &[u8]) -> Result<Decoded, Error>;
    fn name(&self) -> &str;

    // Provided methods
    fn verify_valid_case(
        &self,
        fixture: &[u8],
        expected: &[u8],
    ) -> Result<(), Error> { ... }
    fn verify_invalid_case(&self, fixture: &[u8]) -> Result<Error, Error> { ... }
}

Required Methods§

source

fn decode(&self, data: &[u8]) -> Result<Decoded, Error>

source

fn name(&self) -> &str

Provided Methods§

source

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

source

fn verify_invalid_case(&self, fixture: &[u8]) -> Result<Error, Error>

Implementors§