#[repr(C)]
#[repr(packed)]
pub struct GptPartitionEntry { pub partition_type_guid: GptPartitionType, pub unique_partition_guid: Guid, pub starting_lba: u64, pub ending_lba: u64, pub attributes: u64, pub partition_name: [Char16; 36], }
Expand description

GPT/EFI Partition Entry.

Fields

partition_type_guid: GptPartitionType

GUID that defines the type of this Partition. A value of zero indicates that this partition entry is unused.

unique_partition_guid: Guid

GUID that is unique for every partition entry.

starting_lba: u64

Starting LBA of the partition.

ending_lba: u64

Ending LBA of the partition.

attributes: u64

All attribute bits of the partition.

partition_name: [Char16; 36]

Null-terminated string containing a human-readable name of the partition.

Implementations

Get the number of blocks in the partition. Returns None if the end block is before the start block, or if the number doesn’t fit in a u64.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

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.