1 2 3 4 5 6 7 8 9 10 11 12
pub(crate) fn generate( mut writer: impl std::io::Write, type_name: &str, ) -> Result<(), crate::Error> { writeln!( writer, include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/templates/int_or_string.rs")), type_name = type_name, )?; Ok(()) }