Expand description

The Visitor trait and associated types.

Structs

This represents an array type.
This represents a BitSequence, deferring decoding until the implementation wants to.
This represents a compact encoded type.
This represents a composite type.
A Visitor implementation that just ignores all of the bytes.
This enables a visitor to decode items from a sequence type.
This represents a string, but defers proper decoding of it until it’s asked for, and avoids allocating.
This represents a tuple of values.
The ID of the type being decoded.
A representation of the a variant type.

Enums

A pointer to what the compact value is contained within.
An error decoding SCALE bytes.

Traits

An implementation of the Visitor trait can be passed to the crate::decode() function, and is handed back values as they are encountered. It’s up to the implementation to decide what to do with these values.

Type Definitions

An error that can occur trying to decode a bit sequence.