pub fn serialize_arg(
    arg: &str,
    ty: &IDLType,
    ctx: &CodegenContext<'_>
) -> Result<String>