pub unsafe trait StorageMut: Storage + AsMut<[u8]> {
type Immutable: Storage<Creator = Self>;
// Required method
fn push_slice(&mut self, s: &[u8]);
}
Expand description
Trait for extra functionality of a mutable storage.
This is in addition to what an immutable storage must satisfy.
§Safety
The storage must act “sane”. But what exactly it means is not yet analyzed and may change in future versions. Don’t implement the trait (at least not yet).
Required Associated Types§
Required Methods§
Sourcefn push_slice(&mut self, s: &[u8])
fn push_slice(&mut self, s: &[u8])
Adds some more bytes to the end of the storage.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.