use std::fmt::Display; pub(crate) fn serialize_i32(v: &i32, ser: S) -> std::result::Result where S: serde::Serializer, { ser.serialize_str(&format!("{v}")) } pub(crate) fn serialize_newtype( v: &N, ser: S, ) -> std::result::Result where S: serde::Serializer, { ser.serialize_str(&format!("{v}")) } pub(crate) fn serialize_u32(v: &u32, ser: S) -> std::result::Result where S: serde::Serializer, { ser.serialize_str(&format!("{v}")) }