src/necsus/util/tools

Search:
Group by:

Procs

proc isSinkMemoryCorruptionFixed(): bool {....raises: [], tags: [], forbids: [].}
Returns whether the current version of Nim has a fixed implementation of the 'sink' parameter that doesn't cause memory corruption. See https://github.com/nim-lang/Nim/issues/23907
proc stringify[T](value: T): string {....raises: [], gcsafe.}
Converts a value to a string as best as it can

Templates

template optionPtr[T](opt: Option[T]): Option[ptr T]
Returns a pointer to a value in an option