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

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