Function abstutil::serialize_usize
source · 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.