ZENOTME opened a new issue, #56:
URL: https://github.com/apache/avro-rs/issues/56
Currently, the writer needs to take a lifetime param and this will make it
hard to include in struct sometimes. E.g.
```
struct OutWriter<'a> {
avro_schema: avro::Schema
inner_writer: avro::Writer<'a,Vec<u8>>
}
```
Even though OutWriter owns the avro_schema, it still needs to define the
lifetime param explicitly. And this lifetime will continue to propagate to
other types. Self-reference seems a complicated problem
https://users.rust-lang.org/t/how-can-we-teach-people-about-self-referential-types/65362/2.
So could we just provide a writer who owns the schema and avoids the lifetime
param?🤔
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]