pub trait EmptyBuilder {
    fn empty() -> Self;
    fn with_capacity(capacity: usize) -> Self;
}
Expand description

An octets builder that can be newly created empty.

Required Methods

Creates a new empty octets builder with a default size.

Creates a new empty octets builder with a suggested initial size.

The builder may or may not use the size provided by capacity as the initial size of the buffer. It may very well be possibly that the builder is never able to grow to this capacity at all. Therefore, even if you create a builder for your data size via this function, appending may still fail.

Implementations on Foreign Types

Implementors