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