1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub(crate) fn generate(
    mut writer: impl std::io::Write,
    type_name: &str,
    map_namespace: &impl crate::MapNamespace,
) -> Result<(), crate::Error> {
    let local = crate::map_namespace_local_to_string(map_namespace)?;

    writeln!(
        writer,
        include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/templates/int_or_string.rs")),
        local = local,
        type_name = type_name,
    )?;

    Ok(())
}