pub fn serialize_u32_as_i32<S: Serializer>(
    val: &u32,
    serializer: S
) -> Result<S::Ok, S::Error>
Expand description

Attempts to serialize a u32 as an i32. Errors if an exact conversion is not possible.