Module biodivine_sketchbook::sketchbook::utils

source ยท
Expand description

(internal) General utilities used throughout the module (e.g., serialization helper methods).

Functionsยง

  • Convert keys of the HashMap from String to a given type. This is useful for our own implementing of the serde::Deserialize trait.
  • Convert keys of the HashMap to String, and then order the map by converting it into a sorted BTreeMap.
  • assert_ids_unique ๐Ÿ”’
    Check that the list of (typesafe or string) IDs contains only unique IDs (no duplicates).
  • assert_name_valid ๐Ÿ”’
    Check if a name string is valid, return Error otherwise.