#[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
sourceimpl MbrPartitionRecord
impl MbrPartitionRecord
sourcepub fn is_bootable(&self) -> bool
pub fn is_bootable(&self) -> bool
True if the partition is a bootable legacy partition.
Trait Implementations
sourceimpl Clone for MbrPartitionRecord
impl Clone for MbrPartitionRecord
sourcefn clone(&self) -> MbrPartitionRecord
fn clone(&self) -> MbrPartitionRecord
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MbrPartitionRecord
impl Debug for MbrPartitionRecord
impl Copy for MbrPartitionRecord
Auto Trait Implementations
impl RefUnwindSafe for MbrPartitionRecord
impl Send for MbrPartitionRecord
impl Sync for MbrPartitionRecord
impl Unpin for MbrPartitionRecord
impl UnwindSafe for MbrPartitionRecord
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more