Module abstutil::serde

source ·

Functions§

  • Deserializes a BTreeMap from a list of tuples. Necessary when the keys are structs; see https://github.com/serde-rs/json/issues/402.
  • Deserializes a HashMap from a list of tuples.
  • Deserializes a MultiMap.
  • Deserializes a usize from a u32.
  • Deserializes an object from the bincode format.
  • Deserializes an object from the bincode format, from a reader.
  • Deserializes an object from a JSON string.
  • Deserializes an object from JSON, from a reader.
  • Serializes a BTreeMap as a list of tuples. Necessary when the keys are structs; see https://github.com/serde-rs/json/issues/402.
  • Serializes a HashMap as a list of tuples, first sorting by the keys. This ensures the serialized form is deterministic.
  • Serializes a MultiMap.
  • Serializes a usize as a u32 to save space. Useful when you need usize for indexing, but the values don’t exceed 2^32.
  • The number of bytes for an object serialized to bincode.
  • Transforms an object to bincoded bytes.
  • Stringifies an object to nicely formatted JSON.
  • Stringifies an object to terse JSON.