pub struct OwnedBuf<A = Global>where
    A: 'static + Allocator,
{ /* private fields */ }
Expand description

TODO docs

Implementations

TODO docs

TODO docs

TODO docs

TODO docs

Returns the length of the initialized part of the buffer.

Returns a shared reference to the filled portion of the buffer.

Returns a cursor over the unfilled part of the buffer.

Clears the buffer, resetting the filled region to empty.

The number of initialized bytes is not changed, and the contents of the buffer are not modified.

Asserts that the first n bytes of the buffer are initialized.

OwnedBuf assumes that bytes are never de-initialized, so this method does nothing when called with fewer bytes than are already known to be initialized.

Safety

The caller must ensure that the first n unfilled bytes of the buffer have already been initialized.

Trait Implementations

Executes the destructor for this type. Read more
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.