Struct uefi::proto::media::partition::GptPartitionEntry [−][src]
#[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
.