Expand description
Binary format based on capnproto.
The binary format is optimised for fast serialization and deserialization of hugr modules in the table representation. It is the preferred format to communicate hugr graphs between machines. When a hugr module is to be written or read by humans, the text format can be used instead.
Enums§
- Read
Error - An error encountered while deserialising a model.
- Write
Error - An error encounter while serializing a model.
Functions§
- read_
from_ reader - Read a hugr package from an impl of
BufRead
. - read_
from_ slice - Read a hugr package from a byte slice.
- write_
to_ vec - Writes a package to a byte vector.
- write_
to_ writer - Writes a package to an impl of Write.