pub struct IoReader<R: Read>(pub R);
Expand description

Wrapper that implements Input for any Read type.

Tuple Fields§

§0: R

Trait Implementations§

Should return the remaining length of the input data. If no information about the input length is available, None should be returned. Read more
Read the exact number of bytes required to fill the given buffer. Read more
Read a single byte from the input.
Descend into nested reference when decoding. This is called when decoding a new refence-based instance, such as Vec or Box. Currently all such types are allocated on the heap.
Ascend to previous structure level when decoding. This is called when decoding reference-based type is finished.

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.