Type Alias 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.

Aliased Type§

struct StrMut(/* private fields */);

Implementations§

source§

impl StrMut

source

pub fn split_built(&mut self) -> StrMut

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