pub enum PartitionType {
Unused,
Unknown(u8),
Fat12(u8),
Fat16(u8),
Fat32(u8),
LinuxExt(u8),
HfsPlus(u8),
ISO9660(u8),
NtfsExfat(u8),
}Expand description
The type of a particular partition.
Variants§
Unused
Unknown(u8)
Fat12(u8)
Fat16(u8)
Fat32(u8)
LinuxExt(u8)
HfsPlus(u8)
ISO9660(u8)
NtfsExfat(u8)
Implementations§
Source§impl PartitionType
impl PartitionType
Sourcepub fn from_mbr_tag_byte(tag: u8) -> PartitionType
pub fn from_mbr_tag_byte(tag: u8) -> PartitionType
Parses a partition type from the type byte in the MBR’s table.
Sourcepub fn to_mbr_tag_byte(&self) -> u8
pub fn to_mbr_tag_byte(&self) -> u8
Retrieves the associated type byte for this partition type.
Trait Implementations§
Source§impl Clone for PartitionType
impl Clone for PartitionType
Source§fn clone(&self) -> PartitionType
fn clone(&self) -> PartitionType
Returns a duplicate of the value. Read more
1.0.0 · 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 PartitionType
impl Debug for PartitionType
Source§impl Hash for PartitionType
impl Hash for PartitionType
Source§impl PartialEq for PartitionType
impl PartialEq for PartitionType
impl Copy for PartitionType
impl Eq for PartitionType
impl StructuralPartialEq for PartitionType
Auto Trait Implementations§
impl Freeze for PartitionType
impl RefUnwindSafe for PartitionType
impl Send for PartitionType
impl Sync for PartitionType
impl Unpin for PartitionType
impl UnwindSafe for PartitionType
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