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§
- Trace
Decoding Error - An error encountered when decoding some bytes using the
crate::scale::tracing
module. - Trace
Decoding Visitor - 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 thancrate::scale::decode_as_type()
if decoding fails.