Module tracing

Module tracing 

Source
Expand description

A visitor and function to decode some bytes into a crate::Value while tracing the current decoding state so that a more detailed error can be returned in the event of a failure.

Structs§

TraceDecodingError
An error encountered when decoding some bytes using the crate::scale::tracing module.
TraceDecodingVisitor
A visitor that will attempt to decode some bytes into a crate::Value, returning a detailed error of where the decoding fails if it does.

Functions§

decode_as_type
Decode a value using the TraceDecodingVisitor, which internally keeps track of the current decoding state, and as a result hands back a much more detailed error than crate::scale::decode_as_type() if decoding fails.