pub struct EncodedBytes<'a> { /* private fields */ }
Expand description

Byte Buffer

Represents a buffer of bytes, with an encoding.

Implementations

New Buffer from Parts

Arguments
  • bytes - The contents of the buffer
  • enc - The encoding this buffer is in
Returns

A new buffer instance

New ASCII Buffer

Arguments
  • bytes - The ASCII encoded string
Returns

A new buffer instance

Trait Implementations

Pointer to the start of the pattern Read more

Pointer to the limit of the pattern buffer Read more

The encoding of the contents of the buffer

The length of this buffer

Is the buffer empty?

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.