pub struct SliceReader<'de> { /* private fields */ }
Expand description

An efficient Reader wrapper around a slice.

Implementations

Construct a new instance around the specified slice.

Trait Implementations

Error type raised by the current reader.

Skip over the given number of bytes.

Read a slice out of the current reader.

Read a slice into the given buffer.

Read a single byte.

Read an array out of the current reader.

Keep an accurate record of the position within the reader.

Keep an accurate record of the position within the reader.

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.