Function abstutil::serde::serialize_usize[][src]

pub fn serialize_usize<S: Serializer>(
    x: &usize,
    s: S
) -> Result<S::Ok, S::Error>

Serializes a usize as a u32 to save space. Useful when you need usize for indexing, but the values don't exceed 2^32.