pub struct PartitionEntry {
pub bootable: bool,
pub kind: PartitionKind,
pub start_block: u32,
pub block_count: u32,
pub first_chs: CHS,
pub last_chs: CHS,
}Expand description
MBR partition table entry structure.
Fields§
§bootable: boolBoot indicator.
kind: PartitionKindPartition type.
start_block: u32Starting LBA (Logical Block Address).
block_count: u32Size in sectors.
first_chs: CHSLegacy CHS address of the first sector.
last_chs: CHSLegacy CHS address of the last sector.
Implementations§
Trait Implementations§
Source§impl Clone for PartitionEntry
impl Clone for PartitionEntry
Source§fn clone(&self) -> PartitionEntry
fn clone(&self) -> PartitionEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartitionEntry
impl Debug for PartitionEntry
Source§impl Default for PartitionEntry
impl Default for PartitionEntry
Source§impl PartialEq for PartitionEntry
impl PartialEq for PartitionEntry
Source§fn eq(&self, other: &PartitionEntry) -> bool
fn eq(&self, other: &PartitionEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PartitionEntry
impl Eq for PartitionEntry
impl StructuralPartialEq for PartitionEntry
Auto Trait Implementations§
impl Freeze for PartitionEntry
impl RefUnwindSafe for PartitionEntry
impl Send for PartitionEntry
impl Sync for PartitionEntry
impl Unpin for PartitionEntry
impl UnsafeUnpin for PartitionEntry
impl UnwindSafe for PartitionEntry
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