/// Returns a read-write view on the image data.
Returns a read-write view on the image data.
Returns a read - write view on the image data .
pub fn data_mut(&mut self) -> &mut [u8] {
        let data = unsafe { sys::ktxTexture_GetData(self.handle) };
        // SAFETY: Safe if `self.handle` is sane.
        unsafe { std::slice::from_raw_parts_mut(data, self.data_size()) }
    }
pub fn data_mut ( & mut self ) -> & mut [ u8 ] { let data = unsafe { sys :: ktxTexture_GetData ( self . handle ) } ; // SAFETY: Safe if `self.handle` is sane. unsafe { std :: slice :: from_raw_parts_mut ( data , self . data_size ( ) ) } }
Returns a read-write view on the image data.
Returns a read - write view on the image data .
&mut self