Struct io_arrays::ArrayReader

source ·
pub struct ArrayReader { /* private fields */ }
Expand description

A random-access input source.

Implementations§

Convert a File into a ArrayReader.

Copy a slice of bytes into a memory buffer to allow it to be accessed in the manner of an array.

Trait Implementations§

Return the Metadata for the array. This is similar to std::fs::File::metadata, though it returns fewer fields since the underlying device may not be an actual filesystem inode. Read more
Announce the expected access pattern of the data at the given offset. Read more
Return the Metadata for the array. This is similar to std::fs::File::metadata, though it returns fewer fields since the underlying device may not be an actual filesystem inode. Read more
Announce the expected access pattern of the data at the given offset. Read more
Borrows the handle. Read more
Extracts the raw handle. Read more
Formats the value using the given formatter. Read more
Reads a number of bytes starting from a given offset. Read more
Reads the exact number of byte required to fill buf from the given offset. Read more
Is to read_vectored what read_at is to read.
Is to read_exact_vectored what read_exact_at is to read_exact.
Determines if Self has an efficient read_vectored_at implementation. Read more
Create a StreamReader which reads from the array at the given offset.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Borrows the reference. Read more
Return a borrowing view of a resource which dereferences to a &Target. Read more
Returns the raw value.
Extracts the raw grip.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Query the “status” flags for the self file descriptor.
Create a new SetFdFlags value for use with set_fd_flags. Read more
Set the “status” flags for the self file descriptor. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Set the last access and last modification timestamps of an open file handle. Read more
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.