#[repr(C)]#[repr(packed)]pub struct PartitionInfo {
pub revision: PartitionInfoRevision,
pub partition_type: PartitionType,
/* private fields */
}
Expand description
Protocol for accessing partition information.
Fields
revision: PartitionInfoRevision
Revision of the partition info protocol.
partition_type: PartitionType
Type of partition.
Implementations
sourceimpl PartitionInfo
impl PartitionInfo
sourcepub fn mbr_partition_record(&self) -> Option<&MbrPartitionRecord>
pub fn mbr_partition_record(&self) -> Option<&MbrPartitionRecord>
Get the MBR partition record. Returns None if the partition type is not MBR.
sourcepub fn gpt_partition_entry(&self) -> Option<&GptPartitionEntry>
pub fn gpt_partition_entry(&self) -> Option<&GptPartitionEntry>
Get the GPT partition entry. Returns None if the partition type is not GPT.
Trait Implementations
sourceimpl Clone for PartitionInfo
impl Clone for PartitionInfo
sourcefn clone(&self) -> PartitionInfo
fn clone(&self) -> PartitionInfo
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
impl Copy for PartitionInfo
impl Protocol for PartitionInfo
impl !Send for PartitionInfo
impl !Sync for PartitionInfo
Auto Trait Implementations
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