pub struct LoadedImageDevicePath(/* private fields */);
Expand description
Protocol for accessing the device path that was passed in to load_image
when loading a PE/COFF image.
The layout of this type is the same as a DevicePath
.
Methods from Deref<Target = DevicePath>§
Sourcepub fn as_ffi_ptr(&self) -> *const FfiDevicePath
pub fn as_ffi_ptr(&self) -> *const FfiDevicePath
Cast to a FfiDevicePath
pointer.
Sourcepub fn instance_iter(&self) -> DevicePathInstanceIterator<'_> ⓘ
pub fn instance_iter(&self) -> DevicePathInstanceIterator<'_> ⓘ
Get an iterator over the DevicePathInstance
s in this path.
Sourcepub fn node_iter(&self) -> DevicePathNodeIterator<'_> ⓘ
pub fn node_iter(&self) -> DevicePathNodeIterator<'_> ⓘ
Get an iterator over the DevicePathNode
s 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.
Sourcepub fn to_boxed(&self) -> Box<Self>
Available on crate feature alloc
only.
pub fn to_boxed(&self) -> Box<Self>
alloc
only.Returns a boxed copy of that value.
Sourcepub fn to_string(
&self,
display_only: DisplayOnly,
allow_shortcuts: AllowShortcuts,
) -> Result<CString16, DevicePathToTextError>
Available on crate feature alloc
only.
pub fn to_string( &self, display_only: DisplayOnly, allow_shortcuts: AllowShortcuts, ) -> Result<CString16, DevicePathToTextError>
alloc
only.Transforms the device path to its string representation using the
DevicePathToText
protocol.
Sourcepub fn append_path(
&self,
right: &Self,
) -> Result<PoolDevicePath, DevicePathUtilitiesError>
Available on crate feature alloc
only.
pub fn append_path( &self, right: &Self, ) -> Result<PoolDevicePath, DevicePathUtilitiesError>
alloc
only.Allocates and returns a new DevicePath
by copying this one and appending the given right
path.
Sourcepub fn append_node(
&self,
right: &DevicePathNode,
) -> Result<PoolDevicePath, DevicePathUtilitiesError>
Available on crate feature alloc
only.
pub fn append_node( &self, right: &DevicePathNode, ) -> Result<PoolDevicePath, DevicePathUtilitiesError>
alloc
only.Allocates and returns a new DevicePath
by copying this one and appending the given right
node.
Trait Implementations§
Source§impl Debug for LoadedImageDevicePath
impl Debug for LoadedImageDevicePath
Source§impl Deref for LoadedImageDevicePath
impl Deref for LoadedImageDevicePath
Source§type Target = DevicePath
type Target = DevicePath
The resulting type after dereferencing.
Source§fn deref(&self) -> &DevicePath
fn deref(&self) -> &DevicePath
Dereferences the value.