Repository navigation
v0.3.0
0.3.0
This release makes the following changes:
- All
visit_functions are now handed aTypeIdtoo, which is just a wrapper around au32corresponding
to the type being decoded in the given PortableRegistry. Useful if you'd like to look up more details about
the type in the registry or just store the ID somewhere. visit_compact_functions are now handed avisitor::Compactstruct which one can obtain the compact encoded
value from, or view the path to the compact encoded value via a.locations()method, in case the compact value
is actually nested within named/unnamed structs. The TypeId provided is always the outermost type of the Compact
value, and so one can also discover this information by manual traversal (but since we have to traverse anyway..).- The
Varianttype has been simplified and largely just allows access to the underlyingCompositetype to decode. - The
Compositetype now provides direct access to the (yet-to-be-decoded)fields, and offers separate
decode_itemanddecode_item_with_namemethods to make decoding into named or unnamed shapes a little easier. Visitorrelated types are now exported directly from thevisitormodule rather than avisitor::typesmodule.- Lifetimes have been made more precise to avoid unnecessary lifetime related errors.
Changed
- TypeIds, more info for compact encoded values and tidy up (#1)