Trait bytes_utils::string::StorageMut[][src]

pub unsafe trait StorageMut: Storage + AsMut<[u8]> {
    type Immutable: Storage<Creator = Self>;
    fn push_slice(&mut self, s: &[u8]);
}

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).

Associated Types

type Immutable: Storage<Creator = Self>[src]

An immutable counter-part storage.

Loading content...

Required methods

fn push_slice(&mut self, s: &[u8])[src]

Adds some more bytes to the end of the storage.

Loading content...

Implementations on Foreign Types

impl StorageMut for BytesMut[src]

type Immutable = Bytes

Loading content...

Implementors

Loading content...