Struct stream_inmemory::Reader[][src]

pub struct Reader<'a> { /* fields omitted */ }
Expand description

Reader for inmemory stream

Implementations

Create new Reader based on stream.

Peek one byte from stream, position don’t shift.

Can return EOF error.

Peek bytes from stream, position don’t shift.

Can return EOF, ZeroLength errors.

Read one byte from stream, position shifted.

Can return EOF error.

Read bytes from stream, position shifted.

Can return EOF, ZeroLength errors.

Skip “count” bytes in stream. Return skipped bytes count.

Skip all bytes in stream. Return skipped bytes count.

View of available bytes in stream.

Return available to read bytes.

Clear bytes that have been read. Has no effect on the allocated capacity.

Truncate the capacity of the stream as much as possible.

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.