#[repr(C)]
#[repr(packed)]
pub struct MbrPartitionRecord { pub boot_indicator: u8, pub starting_chs: [u8; 3], pub os_type: MbrOsType, pub ending_chs: [u8; 3], pub starting_lba: u32, pub size_in_lba: u32, }
Expand description

Legacy MBR Partition Record.

Fields

boot_indicator: u8

If 0x80, this is the bootable legacy partition.

starting_chs: [u8; 3]

Start of the partition in CHS address format.

os_type: MbrOsType

Type of partition.

ending_chs: [u8; 3]

End of the partition in CHS address format.

starting_lba: u32

Starting LBA of the partition on the disk.

size_in_lba: u32

Size of the partition in LBA units of logical blocks.

Implementations

True if the partition is a bootable legacy partition.

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.