pub enum PartitionTable {
Mbr(MasterBootRecord),
Gpt {
protective_mbr: MasterBootRecord,
gpt: GptDisk,
},
Hybrid {
hybrid_mbr: MasterBootRecord,
gpt: GptDisk,
},
}Available on crate feature
alloc only.Expand description
A unified partition scheme that can be MBR, GPT, or Hybrid.
Variants§
Mbr(MasterBootRecord)
Pure MBR partitioning.
Gpt
GPT partitioning with protective MBR.
Hybrid
Hybrid MBR + GPT partitioning.
Implementations§
Source§impl PartitionTable
impl PartitionTable
Sourcepub fn scheme_type(&self) -> PartitionSchemeType
pub fn scheme_type(&self) -> PartitionSchemeType
Returns the partition scheme type.
Sourcepub fn partitions(&self) -> Vec<PartitionInfo>
pub fn partitions(&self) -> Vec<PartitionInfo>
Returns partition information for all partitions.
Trait Implementations§
Source§impl Clone for PartitionTable
impl Clone for PartitionTable
Source§fn clone(&self) -> PartitionTable
fn clone(&self) -> PartitionTable
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 PartitionTable
impl Debug for PartitionTable
Source§impl PartitionTableReadExt for PartitionTable
Available on crate features read and sync only.
impl PartitionTableReadExt for PartitionTable
Available on crate features
read and sync only.Source§impl PartitionTableReadExt for PartitionTable
Available on crate features async and read only.
impl PartitionTableReadExt for PartitionTable
Available on crate features
async and read only.Source§impl PartitionTableWriteExt for PartitionTable
Available on crate features sync and write only.
impl PartitionTableWriteExt for PartitionTable
Available on crate features
sync and write only.Auto Trait Implementations§
impl Freeze for PartitionTable
impl RefUnwindSafe for PartitionTable
impl Send for PartitionTable
impl Sync for PartitionTable
impl Unpin for PartitionTable
impl UnsafeUnpin for PartitionTable
impl UnwindSafe for PartitionTable
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