pub struct TypeCode(pub u8);Expand description
Wrapper around an MBR partition type byte with semantic helpers.
Tuple Fields§
§0: u8Implementations§
Source§impl TypeCode
impl TypeCode
Sourcepub fn family(self) -> PartitionFamily
pub fn family(self) -> PartitionFamily
High-level partition family classification.
Sourcepub fn is_extended(self) -> bool
pub fn is_extended(self) -> bool
true if this type code marks an extended partition container.
Trait Implementations§
impl Copy for TypeCode
impl Eq for TypeCode
impl StructuralPartialEq for TypeCode
Auto Trait Implementations§
impl Freeze for TypeCode
impl RefUnwindSafe for TypeCode
impl Send for TypeCode
impl Sync for TypeCode
impl Unpin for TypeCode
impl UnsafeUnpin for TypeCode
impl UnwindSafe for TypeCode
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