1 2 3 4 5 6 7 8 9 10 11 12
#[derive(Debug, Clone)] pub enum Doctype { Html5, } impl ToString for Doctype { fn to_string(&self) -> String { match self { Doctype::Html5 => "<!DOCTYPE HTML>".to_owned(), } } }