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
fromString
to a given type. This is useful for our own implementing of the serde::Deserialize trait. - Convert keys of the
HashMap
toString
, and then order the map by converting it into a sortedBTreeMap
. - 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.