Replies: 3 comments 1 reply
-
Wait, just found out there's a Serde and zero allocation section in the tutorial, should have RTFM before asking that... |
Beta Was this translation helpful? Give feedback.
-
Sorry, I'm not quite sure what your question is here. The Serde and zero allocation section is probably what I would have linked you to otherwise. Note also that "zero copy" is not quite correct here. The |
Beta Was this translation helpful? Give feedback.
-
Sorry about the question being not clear, I do have a specific case in mind but I'm also learning rust so the generic title. My case: I should probably write my own simple parser by just split it, since the CSV is generated and doesn't have escapes, it should be easy, just feels a little weird to write my own wheels. |
Beta Was this translation helpful? Give feedback.
-
I previously read about this issue (and commented)
#229
Indeed, iterator returned by a zero-copy parser from a Reader can't be collected into a
Vec
, (I think) I understood that.Stream processing should be possible, but AFAICT this crate doesn't support that, since
csv::Reader::deserialize
requiresDeserializeOwned
.Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions