pub unsafe trait ByteSliceMut: ByteSlice + DerefMut {
    // Required method
    fn as_mut_ptr(&mut self) -> *mut u8;
}
Expand description

A mutable reference to a byte slice.

ByteSliceMut abstracts over various ways of storing a mutable reference to a byte slice, and is implemented for various special reference types such as RefMut<[u8]>.

Required Methods§

source

fn as_mut_ptr(&mut self) -> *mut u8

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> ByteSliceMut for &'a mut [u8]

source§

fn as_mut_ptr(&mut self) -> *mut u8

source§

impl<'a> ByteSliceMut for RefMut<'a, [u8]>

source§

fn as_mut_ptr(&mut self) -> *mut u8

Implementors§