use std::fmt::{self, Write};
use yarte_helpers::Result;
pub trait Template: fmt::Display {
fn call(&self) -> Result<String> {
let mut buf = String::with_capacity(Self::size_hint());
write!(buf, "{}", self).map(|_| buf)
}
#[cfg(feature = "mime")]
fn mime() -> &'static str
where
Self: Sized;
fn size_hint() -> usize;
}