Skip to main content

ByteStorageMut

Trait ByteStorageMut 

Source
pub trait ByteStorageMut: ByteStorage {
    // Required method
    fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ;
}
Expand description

Full re-export of zenpixels core types (zero module name collisions!). Mutable access to native-endian pixel bytes without copying.

Required Methods§

Source

fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ

Mutable underlying bytes in native endianness.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ByteStorageMut for &mut [T]
where T: Pod,

Source§

fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ

Source§

impl<T> ByteStorageMut for Box<[T]>
where T: Pod,

Source§

fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ

Source§

impl<T> ByteStorageMut for Vec<T>
where T: Pod,

Source§

fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ

Implementors§