#[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.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.