Module interoptopus::util

source ·
Expand description

Helpers for backend authors.

Structs§

  • Allows, for example, my_id to be converted to MyId.
  • Maps an internal namespace like common to a language namespace like Company.Common.

Functions§

  • Checks whether the given type should be “the same type everywhere”.
  • Logs an error if compiled with feature log.
  • Given a number of functions like [lib_x, lib_y] return the longest common prefix lib_.
  • Converts an internal name like fn() -> X to a safe name like fn_rval_x
  • Sorts types so the latter entries will find their dependents earlier in this list.