- Provide a
path
iterator to composite, variant and sequence callbacks inResolveTypeVisitor
, so that people can access the path/name of these types. The path is also exposed in the concrete visitor implementation. - Make
TypeId
be passed by value and not lifetime. This is done because:scale-info
uses aTypeId = u32
, so it does not matter either way, andscale-info-legacy
usesTypeId = TypeName
, and needs to modify theTypeName
s provided back in some cases, making pass-by-reference impossible.
Just a patch release to make a small addition and no API changes:
- Add a
scale_type_resolver::visitor::new()
function which allows you to construct a closure based implementation ofResolveTypeVisitor
. This is much easier to use than implementing the trait yourself in most cases, since the closures provided can capture state etc from the environment.
Initial release.