bytes icon indicating copy to clipboard operation
bytes copied to clipboard

`BufMut` does not include safety invariants in trait documentation

Open djkoloski opened this issue 6 months ago • 1 comments

BufMut is unsafe to implement, but there are no safety requirements telling users what they need to ensure for their implementations to be sound. It looks like https://github.com/tokio-rs/bytes/issues/329 lists out the requirements, so they may just need to be translated into documentation.

djkoloski avatar Jan 24 '24 21:01 djkoloski