Module scale_value::scale::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§
- An error encountered when decoding some bytes using the
crate::scale::tracingmodule. - 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 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 thancrate::scale::decode_as_type()if decoding fails.