pub enum PartitionType {
Hfs,
Hfsx,
Apfs,
Other,
}Expand description
Partition filesystem type detected from the partition name
Variants§
Hfs
HFS+ (case-insensitive)
Hfsx
HFSX (case-sensitive HFS+)
Apfs
Apple APFS
Other
Other or unknown partition type
Implementations§
Source§impl PartitionType
impl PartitionType
Sourcepub fn from_partition_name(name: &str) -> Self
pub fn from_partition_name(name: &str) -> Self
Classify a partition from its DMG partition name (e.g. “Apple_HFSX”)
Sourcepub fn is_hfs_compatible(&self) -> bool
pub fn is_hfs_compatible(&self) -> bool
Returns true if this partition can be parsed as HFS+
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 (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 PartitionType
Source§impl Debug for PartitionType
impl Debug for PartitionType
impl Eq for PartitionType
Source§impl PartialEq for PartitionType
impl PartialEq 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.