pub enum MbrPartitionType {
Show 17 variants
Empty,
Fat12,
Fat16,
Extended,
Fat16Lba,
Ntfs,
Fat32,
Fat32Lba,
ExtendedLba,
Iso9660,
LinuxSwap,
LinuxNative,
LinuxLvm,
LinuxRaid,
ProtectiveMbr,
EfiSystemPartition,
Unknown(u8),
}Expand description
A simplified enum for common MBR partition types.
For a complete list of partition types, see MbrPartitionTypeFull.
Variants§
Empty
An unused partition-table entry.
Fat12
A FAT12 partition.
Fat16
A FAT16 partition.
Extended
A legacy extended partition.
Fat16Lba
A FAT16 partition addressed through LBA extensions.
Ntfs
An NTFS or other installable-file-system partition.
Fat32
A FAT32 partition.
Fat32Lba
A FAT32 partition addressed through LBA extensions.
ExtendedLba
An extended partition addressed through LBA extensions.
Iso9660
An ISO9660 filesystem or hidden NTFS partition.
LinuxSwap
A Linux swap partition.
LinuxNative
A native Linux filesystem partition.
LinuxLvm
A Linux Logical Volume Manager partition.
LinuxRaid
A Linux software RAID partition.
ProtectiveMbr
A GPT protective MBR entry.
EfiSystemPartition
An EFI System Partition.
Unknown(u8)
A partition type not represented by a named variant.
Implementations§
Source§impl MbrPartitionType
impl MbrPartitionType
Trait Implementations§
Source§impl Clone for MbrPartitionType
impl Clone for MbrPartitionType
Source§fn clone(&self) -> MbrPartitionType
fn clone(&self) -> MbrPartitionType
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 moreimpl Copy for MbrPartitionType
Source§impl Debug for MbrPartitionType
impl Debug for MbrPartitionType
Source§impl Display for MbrPartitionType
impl Display for MbrPartitionType
impl Eq for MbrPartitionType
Source§impl PartialEq for MbrPartitionType
impl PartialEq for MbrPartitionType
impl StructuralPartialEq for MbrPartitionType
Auto Trait Implementations§
impl Freeze for MbrPartitionType
impl RefUnwindSafe for MbrPartitionType
impl Send for MbrPartitionType
impl Sync for MbrPartitionType
impl Unpin for MbrPartitionType
impl UnsafeUnpin for MbrPartitionType
impl UnwindSafe for MbrPartitionType
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