In my code I write to a sub-buffer. Due to #27 this sub-buffer needs to be mutable. The buffer the sub-buffer is created from via Buffer::create_sub_buffer() doesn't need (in the Rust type system sense) to be mutable. Though it actually mutates.
I haven't encountered such a case myself in Rust yet, so I don't know if there are any good patterns how those things are usually solved.
This issue isn't really actionable, but I wanted to bring it up, in case someone has a good idea. So feel free to close the issue as "won't fix".
In my code I write to a sub-buffer. Due to #27 this sub-buffer needs to be mutable. The buffer the sub-buffer is created from via
Buffer::create_sub_buffer()doesn't need (in the Rust type system sense) to be mutable. Though it actually mutates.I haven't encountered such a case myself in Rust yet, so I don't know if there are any good patterns how those things are usually solved.
This issue isn't really actionable, but I wanted to bring it up, in case someone has a good idea. So feel free to close the issue as "won't fix".