Skip to main content

StorageMut

Trait StorageMut 

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

This trait must be implemented for types from which you wish to use write_* operations with

Required Methods§

Source

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

Get the bytes that represent this type

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl StorageMut for &mut [u8]

Source§

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

Source§

impl<const N: usize> StorageMut for &mut [u8; N]

Source§

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

Source§

impl<const N: usize> StorageMut for [u8; N]

Source§

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

Implementors§