pub struct AccumulatingReader { /* private fields */ }

Implementations

Grow and fill the internal buffer such that at least min_len characters are present, or the end of the file has been reached. This function may shift the buffer contents around, in which case previous buffer indices become invalid. Recalculate all indices derived from base, pos, or tail after a call to this function.

Return a slice of the consumed bytes.

Return a slice of the remaining bytes, starting at the last call to clear().

Trait Implementations

Return the value of the byte that is off bytes away from the current position in the input file. If the off lies beyond the end of file, None is returned.

Consume the next amt bytes of the input. All consumed bytes since the last clear() can be accessed via slice() or to_string().

Clear the consumed bytes.

Convert the consumed bytes to a String.

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

Performs the conversion.

Performs the conversion.

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.