pub fn decode_with_error_tracing<'scale, 'resolver, Resolver, Id, V>(
cursor: &mut &'scale [u8],
type_id: Id,
types: &'resolver Resolver,
visitor: V,
) -> Result<V::Value<'scale, 'resolver>, DecodeErrorTrace>
Expand description
Decode some bytes given a type ID and type resolver, and a visitor which decides the output value.
If the decoding fails and the error-tracing
feature is enabled, we try to decode again using
a tracing visitor in order to return a more detailed error message.