#[repr(C, packed(1))]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§
source§impl MbrPartitionRecord
impl MbrPartitionRecord
sourcepub const fn is_bootable(&self) -> bool
pub const fn is_bootable(&self) -> bool
True if the partition is a bootable legacy partition.
Trait Implementations§
source§impl Clone for MbrPartitionRecord
impl Clone for MbrPartitionRecord
source§fn clone(&self) -> MbrPartitionRecord
fn clone(&self) -> MbrPartitionRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MbrPartitionRecord
impl Debug for MbrPartitionRecord
impl Copy for MbrPartitionRecord
Auto Trait Implementations§
impl Freeze for MbrPartitionRecord
impl RefUnwindSafe for MbrPartitionRecord
impl Send for MbrPartitionRecord
impl Sync for MbrPartitionRecord
impl Unpin for MbrPartitionRecord
impl UnwindSafe for MbrPartitionRecord
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more