I've been trying to write a serde
Serializer, but running into problems. See this playground:
I cannot change the traits (they're part of serde), only the impls. So how do I fix the
serialize_field() implementation so that the correct lifetime can be inferred? Conceptually the lifetimes should not be an issue, but I have not been able to figure out how to convey this to the compiler.