Struct io_arrays::ArrayWriter

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

A random-access output sink.

Implementations§

Convert a File into a ArrayWriter.

The file must not be opened in append mode.

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
Writes a number of bytes starting from a given offset. Read more
Attempts to write an entire buffer starting from a given offset. Read more
Is to write_vectored what write_at is to write.
Is to write_all_vectored what write_all_at is to write_all.
Determines if Self has an efficient write_vectored_at implementation. Read more
Copy len bytes from input at input_offset to self at offset.
Truncates or extends the underlying array, updating the size of this array to become size. Read more
Writes a number of bytes starting from a given offset. Read more
Attempts to write an entire buffer starting from a given offset. Read more
Is to write_vectored what write_at is to write.
Is to write_all_vectored what write_all_at is to write_all.
Determines if Self has an efficient write_vectored_at implementation. Read more
Copy len bytes from input at input_offset to self at offset.
Truncates or extends the underlying array, updating the size of this array to become size. Read more

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.