Struct stream_inmemory::Stream[][src]

pub struct Stream { /* fields omitted */ }
Expand description

Dynamically sized inmemory stream.

Used as buffer with read, write and peek funcs.

Implementations

Create new Stream with zero capacity.

Create new Stream with target capacity.

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

Truncate the capacity of the stream as much as possible.

Trait Implementations

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.

Write one byte to stream.

Write bytes to stream.

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.