sonic_rs::to_{writer, writer_pretty}
over arbitrary I/O writers
#54
Labels
C-enhancement
This is a PR that adds a new feature or fixes a bug.
Is your feature request related to a problem? Please describe.
It would be great if the
sonic_rs::to_{writer, writer_pretty}
could be used with arbitrary I/O writers.In particular, I'm attempting to implement a trait which only receives an
io::Write
type and I would like to serialize the JSON directly into the writer without any intermediate buffering.Describe the solution you'd like
Any type that implements
std::io::Writer
can be used withsonic_rs::to_{writer, writer_pretty}
Describe alternatives you've considered
Write a wrapper struct that implements
WriteExt
but I'm not sure how to implement the trait for arbitrary writersThe text was updated successfully, but these errors were encountered: