Type Definition bytes_utils::string::StrMut

source · []
pub type StrMut = StrInner<BytesMut>;
Expand description

A mutable variant of BytesMut-backed string.

Unlike Str, this one allows modifications (mostly additions), but also doesn’t allow overlapping/shared chunks.

This is internally backed by the StrInner type, so the documentation of the methods are on that.

Implementations

Splits and returns the part of already built string, but keeps the extra capacity.