#[repr(C)]
#[repr(packed)]
pub struct PartitionInfo { pub revision: PartitionInfoRevision, pub partition_type: PartitionType, /* private fields */ }
Expand description

Protocol for accessing partition information.

Fields

revision: PartitionInfoRevision

Revision of the partition info protocol.

partition_type: PartitionType

Type of partition.

Implementations

True if the partition is an EFI system partition.

Get the MBR partition record. Returns None if the partition type is not MBR.

source

pub fn gpt_partition_entry(&self) -> Option<&GptPartitionEntry>

Get the GPT partition entry. Returns None if the partition type is not GPT.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Unique protocol identifier.

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.

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.