Expand description
§Tycho Binary Format
The tycho binary format is a minimal, self-describing and traversable data format designed around rust and the serde data model.
§Features
partial
- Partial Reading/Traversalserde
- Serde serialisation and deserialisationserde_optimise
- Serde structure optimisation (default)serde_types
- Serde structure type serialisation (default)async_tokio
- Async reading support with tokiocompression
- Compression (gzip)
Modules§
- collections
- Wrappers around
HashMap
andVec
mapping to a respective type within tycho. - compression
- Utility traits for element compression/decompression. (requires
compression
feature) - error
- Error types returned from tycho marshall/unmarshall/serialise/deserialize processes.
- ident
- Type prefixes/identities used within the marshall and unmarshall processes - Returned in errors.
- partial
- Partial unmarshall and traversal. (requires
partial
feature)
Structs§
- Uuid
- A simple UUID (v4) implementation.
Enums§
- Element
- A element tag, used to build tycho data structures.
- Number
- A numerical value tag, used when creating tycho data.
- Value
- A primitive terminating type, used when creating tycho data.
Traits§
Functions§
- from_
bytes - Deserialize tycho bytes into a serde deserializable object. (requires
serde
) - from_
element - Deserialize an element into a serde deserializable object. (requires
serde
) - marshall
- Marshall an element to a byte buffer or writable object.
- marshall_
vec - Marshall an element into a vec of bytes.
- to_
bytes - Serialize a serde serializable object into tycho bytes. (requires
serde
) - to_
element - Serialize a serde serializable object into an Element. (requires
serde
) - unmarshall
- Unmarshall an element from a readable object.
- unmarshall_
async - Unmarshall an element from a async readable object.
- unmarshall_
vec - Unmarshall an element from a vec of bytes.