pub unsafe trait StableBufMut: StableBuf {
// Required method
fn stable_mut_ptr(&mut self) -> *mut u8;
// Provided methods
fn put_slice(&mut self, src: &[u8]) { ... }
fn deref_mut(&mut self) -> &mut [u8] ⓘ { ... }
}
Expand description
A mutable buffer with a stable memory address.
§Safety
The implementor must guarantee that the pointer remains valid and unchanged while the buffer is being used.
Required Methods§
Sourcefn stable_mut_ptr(&mut self) -> *mut u8
fn stable_mut_ptr(&mut self) -> *mut u8
Returns a raw pointer to this buffer.