Crate string_wrapper [] [src]

provides StringWrapper, most useful for stack-based strings.

Structs

StringWrapper

Like String, but with a fixed capacity and a generic backing bytes storage.

Traits

Buffer

Equivalent to AsMut<[u8]> + AsRef<[u8]> with the additional constraint that implementations must return the same slice from subsequent calls of as_mut and/or as_ref.

OwnedBuffer

The OwnedBuffer trait is in support of StringWrapper::from_str, since we need to be able to allocate new buffers for it.