pub struct DevicePathFromText(/* private fields */);Expand description
Device Path from Text Protocol.
Protocol for converting a string to a DevicePath or DevicePathNode].
Implementations§
Source§impl DevicePathFromText
impl DevicePathFromText
Sourcepub fn convert_text_to_device_node(
&self,
text_device_node: &CStr16,
) -> Result<PoolDevicePathNode>
pub fn convert_text_to_device_node( &self, text_device_node: &CStr16, ) -> Result<PoolDevicePathNode>
Convert a CStr16 to a DevicePathNode.
If a non-device-node character is encountered, the rest of the string is ignored.
Returns an OUT_OF_RESOURCES error if there is insufficient
memory for the conversion.
Sourcepub fn convert_text_to_device_path(
&self,
text_device_path: &CStr16,
) -> Result<PoolDevicePath>
pub fn convert_text_to_device_path( &self, text_device_path: &CStr16, ) -> Result<PoolDevicePath>
Convert a CStr16 to a DevicePath.
If a non-device-node character is encountered, the rest of the string is ignored.
Returns an OUT_OF_RESOURCES error if there is insufficient
memory for the conversion.
Trait Implementations§
Source§impl Debug for DevicePathFromText
impl Debug for DevicePathFromText
impl Protocol for DevicePathFromText
Auto Trait Implementations§
impl Freeze for DevicePathFromText
impl RefUnwindSafe for DevicePathFromText
impl Send for DevicePathFromText
impl Sync for DevicePathFromText
impl Unpin for DevicePathFromText
impl UnwindSafe for DevicePathFromText
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more