1 2 3 4 5 6 7 8 9 10
use crate::error::Result; use std::io::Write; pub trait Converter { fn convert(&self, input: &[u8], writer: &mut dyn Write) -> Result<()>; fn format_name(&self) -> &'static str; fn output_extension(&self) -> &'static str { "md" } }