pub struct RandomAccessDisk { /* private fields */ }
Expand description

Main constructor.

Implementations§

Create a new instance.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
An error.
Write bytes at an offset to the backend.
Read a sequence of bytes at an offset from the backend.
Read a sequence of bytes at an offset from the backend.
Delete a sequence of bytes at an offset from the backend.
Resize the sequence of bytes, possibly discarding or zero-padding bytes from the end. Read more
Get the size of the storage in bytes.
Whether the storage is empty. For some storage backends it may be cheaper to calculate whether the storage is empty than to calculate the length. Read more

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.