xso: add type-erased and dyn-compatible variant of AsXml

That way, we don't need to know the specific type of iterator or even
iteree anymore. This can turn out useful when working with `Box<dyn _>`,
that is, in contexts where we don't know the (possible or actual) types
at compile time.
This commit is contained in:
Jonas Schäfer 2025-05-01 10:30:46 +02:00 committed by Link Mauve
commit d7b62488dc
3 changed files with 40 additions and 1 deletions

View file

@ -53,6 +53,7 @@ Version NEXT:
- `xso::convert_via_fromstr_and_display`, a declarative macro to provide
`AsXmlText` and `FromXmlText` implementations based on the standard
library's `Display` and `FromStr` traits.
- `AsXmlDyn`, a dyn-compatible variant of `AsXml` (!573).
* Changes
- Generated AsXml iterator and FromXml builder types are now
doc(hidden), to not clutter hand-written documentation with auto