Skip to content

Mutability of sub-buffers #29

@vmx

Description

@vmx

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions