frosty

  Source   Edit

Types

FreezeError = object of FrostyError
An error raised during freeze.   Source   Edit
ThawError = object of FrostyError
An error raised during thaw.   Source   Edit

Procs

proc `$`(err: ref FrostyError): string {....raises: [], tags: [].}
  Source   Edit
proc deserialize[T](s: var Serializer; o: var ref T)
  Source   Edit
proc freeze[S, T](output: S; input: T)
Write input into output.   Source   Edit
proc origin(err: ref FrostyError): ref Exception {....raises: [], tags: [].}
Retrieve the error that precipitated the FrostyError.   Source   Edit
proc serialize[T](s: var Serializer; o: ref T)
  Source   Edit
proc thaw[S, T](input: S; output: var T)
Read output from input.   Source   Edit

Macros

macro deserialize(s: var Serializer; o: var typed)
  Source   Edit
macro serialize(s: var Serializer; o: typed): untyped
  Source   Edit

Templates

template frostyError(tipe: typedesc[FreezeError or ThawError];
                     exc: ref Exception; mess = ""): auto
  Source   Edit
template frostyError(tipe: typedesc[FreezeError or ThawError]; msg = ""): auto
  Source   Edit