Function scale_decode::visitor::decode_with_visitor
source · pub fn decode_with_visitor<'scale, 'info, V: Visitor>(
data: &mut &'scale [u8],
ty_id: u32,
types: &'info PortableRegistry,
visitor: V
) -> Result<V::Value<'scale, 'info>, V::Error>Expand description
Decode data according to the type ID and PortableRegistry provided.
The provided pointer to the data slice will be moved forwards as needed
depending on what was decoded, and a method on the provided Visitor
will be called depending on the type that needs to be decoded.