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> { ... }
}