Module binary

Module binary 

Source
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§

ReadError
An error encountered while deserialising a model.
WriteError
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.