pub enum PartitionTypeId {
EfiSystem,
MicrosoftBasicData,
LinuxFilesystem,
LinuxSwap,
AppleHfsPlus,
AppleApfs,
GptCustom([u8; 16]),
MbrCustom(u8),
}Expand description
Cross-table-format identifier for “what kind of partition is this?”. The caller picks a logical role and the mutation API translates it to the right on-disk encoding (GPT type GUID or MBR type byte).
Variants§
EfiSystem
MicrosoftBasicData
LinuxFilesystem
LinuxSwap
AppleHfsPlus
AppleApfs
GptCustom([u8; 16])
Escape hatch: a raw type GUID. MBR tables reject this with
Error::Invalid.
MbrCustom(u8)
Escape hatch: a raw MBR type byte. GPT tables reject this with
Error::Invalid.
Trait Implementations§
Source§impl Clone for PartitionTypeId
impl Clone for PartitionTypeId
Source§fn clone(&self) -> PartitionTypeId
fn clone(&self) -> PartitionTypeId
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 PartitionTypeId
impl Debug for PartitionTypeId
Source§impl PartialEq for PartitionTypeId
impl PartialEq for PartitionTypeId
Source§fn eq(&self, other: &PartitionTypeId) -> bool
fn eq(&self, other: &PartitionTypeId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PartitionTypeId
impl Eq for PartitionTypeId
impl StructuralPartialEq for PartitionTypeId
Auto Trait Implementations§
impl Freeze for PartitionTypeId
impl RefUnwindSafe for PartitionTypeId
impl Send for PartitionTypeId
impl Sync for PartitionTypeId
impl Unpin for PartitionTypeId
impl UnsafeUnpin for PartitionTypeId
impl UnwindSafe for PartitionTypeId
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