#[repr(C, packed)]
pub struct DevicePath { /* private fields */ }
Expand description

Device path protocol.

A device path contains one or more device path instances made of up variable-length nodes. It ends with an END_ENTIRE node.

See the module-level documentation for more details.

Implementations

Create a DevicePath reference from an opaque pointer.

Safety

The input pointer must point to valid data. That data must remain valid for the lifetime 'a, and cannot be mutated during that lifetime.

Cast to a FfiDevicePath pointer.

Get an iterator over the DevicePathInstances in this path.

Get an iterator over the DevicePathNodes starting at self. Iteration ends when a path is reached where is_end_entire is true. That ending path is not returned by the iterator.

Trait Implementations

Formats the value using the given formatter. Read more

Unique protocol identifier.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Create a const pointer to a Protocol from a c_void pointer. Read more

Create a mutable pointer to a Protocol from a c_void pointer. 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