pub trait ToOutput {
// Required method
fn to_output(&self, output: &mut dyn Output);
// Provided method
fn data_hash(&self) -> Hash { ... }
}pub trait ToOutput {
// Required method
fn to_output(&self, output: &mut dyn Output);
// Provided method
fn data_hash(&self) -> Hash { ... }
}