Trait Template
wearte
pub trait Template: Display { fn mime() -> &'static str where Self: Sized; fn size_hint() -> usize; fn call(&self) -> Result<String> { ... } fn call_into_fmt(&self, writer: &mut dyn Write) -> Result { ... } fn call_into_io(&self, writer: &mut dyn Write) -> Result<()> { ... } }
fn mime() -> &'static str where Self: Sized,
fn size_hint() -> usize
fn call(&self) -> Result<String>
fn call_into_fmt(&self, writer: &mut dyn Write) -> Result
fn call_into_io(&self, writer: &mut dyn Write) -> Result<()>