Function abstutil::serialize_usize[][src]

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

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