decode_with_error_tracing

Function decode_with_error_tracing 

Source
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>
where Resolver: TypeResolver<TypeId = Id>, Id: Debug + Clone, V: Visitor<TypeResolver = Resolver>, V::Error: Debug,
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.