Crate canonical

Crate canonical 

Source
Expand description

Build Status Repository Documentation

§Canonical

A no_std, host-allocating serialization library

Structs§

Id
This is the Id type, that uniquely identifies slices of bytes, in rust equivalent to &[u8]. As in the case with &[u8] the length is also encoded in the type, making it a kind of a fat-pointer for content addressed byte-slices.
Sink
Struct for saving encoded data
Source
Struct holding encoded data to be decoded into its initial value
Store
Low-level interface to the store logic

Enums§

CanonError
The possible errors when fetching/decoding values from a store

Traits§

Canon
Trait to read/write values as bytes
EncodeToVec
Helper trait to encode Canon types into byte vectors

Type Aliases§

IdHash
A hash identifiying some data