Struct driverkit::iomem::IOBuf

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

Represents an IO buffer (data handed to/from device).

Implementations§

Fill buffer with as many 0 as capacity allows.

Removes all buffer contents.

Copy data from src into a given offset of the IOBuf.

Copy raw data of size len into the buffer.

Copy data out of the IOBuf, starting at a given offset into dst.

Copy the data (starting at 0) to dst slice.

Get a IOBuf contents as slice.

Get a IOBuf contents as mutable slice.

Trait Implementations§

Formats the value using the given formatter. Read more

Address of the IOBuf in main memory.

Virtual address this buffer can be access by software.

implementation for the index operator [] on IOBuf

The returned type after indexing.

Performs the indexing (container[index]) operation.

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.