Expand description

Ths module allows Bits to be dynamically encoded and decoded into/from a given Format. The Format can either be provided manually, or extracted from scale_info type information.

Structs

A description of a format to encode/decode Bits to/from. The format basically defines the “store type” and “order type” that will be used to SCALE encode or decode some Bits. These concepts are the same as in bitvec, but essentially:

Enums

An error that can occur when we try to encode or decode to a SCALE bit sequence type.

This is a runtime representation of the order that bits will be written to the specified StoreType.

This is a runtime representation of the store type that we’re targeting. These are equivalent to the bitvec store types u8, u16 and so on.