pub trait OwnedBuffer: Buffer {
// Required method
fn new() -> Self;
}
Expand description
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
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.