Trait string_wrapper::OwnedBuffer [] [src]

pub trait OwnedBuffer: Buffer {
    fn new() -> Self;
}

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

IMPLEMENTATION NOTE: There is currently no impl for Vec, because StringWrapper assumes a fixed capacity, and we don't have a way to know what size vec we should return.

Required Methods

Creature a new buffer that can be used to initialize a StringWrapper.

Implementors