xso: allow FromXml implementations to provide matching hints

That way, callers can put multiple candidate implementations in, for
example, a sorted vector and more efficiently select candidates to try
when looking at a new element.
This commit is contained in:
Jonas Schäfer 2025-05-01 13:30:44 +02:00 committed by Link Mauve
commit 126588b47d
3 changed files with 110 additions and 22 deletions

View file

@ -54,6 +54,9 @@ Version NEXT:
`AsXmlText` and `FromXmlText` implementations based on the standard
library's `Display` and `FromStr` traits.
- `AsXmlDyn`, a dyn-compatible variant of `AsXml` (!573).
- `FromXml::xml_name_matcher()` and related types, which allow `FromXml`
implementors to provide cachable hints to callers about which XML
elements are valid candidates for parsing (!573).
* Changes
- Generated AsXml iterator and FromXml builder types are now
doc(hidden), to not clutter hand-written documentation with auto