Hello, I am trying to rewrite a RIFF crate just as an exercise. The entire code is here: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=893be8172f87b23f74002cb5235b256a
Am I doing something too crazy here? I think this kind of thing is normal when writing file formats. The problem I am having is the implementation of the
From trait for
ChunkContents. I mean, it should be possible to create an opaque type that must exist within the lifetime of its data, yes?
edit: updated the code