#[repr(transparent)]pub struct GptPartitionType(pub Guid);
Expand description
Unique ID representing the type of a partition.
Tuple Fields§
§0: Guid
Implementations§
Source§impl GptPartitionType
impl GptPartitionType
Sourcepub const EFI_SYSTEM: Self
pub const EFI_SYSTEM: Self
EFI system partition.
This constant is defined in the UEFI Specification in Table 5-7 “Defined GPT Partition Entry - Partition Type GUIDs”.
Sourcepub const LEGACY_MBR: Self
pub const LEGACY_MBR: Self
Partition containing a legacy MBR.
This constant is defined in the UEFI Specification in Table 5-7 “Defined GPT Partition Entry - Partition Type GUIDs”.
Sourcepub const BASIC_DATA: Self
pub const BASIC_DATA: Self
Basic data partition.
Sourcepub const CHROME_OS_KERNEL: Self
pub const CHROME_OS_KERNEL: Self
ChromeOS kernel partition.
Sourcepub const CHROME_OS_ROOT_FS: Self
pub const CHROME_OS_ROOT_FS: Self
ChromeOS rootfs partition.
Trait Implementations§
Source§impl Clone for GptPartitionType
impl Clone for GptPartitionType
Source§fn clone(&self) -> GptPartitionType
fn clone(&self) -> GptPartitionType
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 GptPartitionType
impl Debug for GptPartitionType
Source§impl Default for GptPartitionType
impl Default for GptPartitionType
Source§fn default() -> GptPartitionType
fn default() -> GptPartitionType
Returns the “default value” for a type. Read more
Source§impl Display for GptPartitionType
impl Display for GptPartitionType
Source§impl FromStr for GptPartitionType
impl FromStr for GptPartitionType
Source§impl Hash for GptPartitionType
impl Hash for GptPartitionType
Source§impl Ord for GptPartitionType
impl Ord for GptPartitionType
Source§fn cmp(&self, other: &GptPartitionType) -> Ordering
fn cmp(&self, other: &GptPartitionType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GptPartitionType
impl PartialEq for GptPartitionType
Source§impl PartialOrd for GptPartitionType
impl PartialOrd for GptPartitionType
impl Copy for GptPartitionType
impl Eq for GptPartitionType
impl Pod for GptPartitionType
impl StructuralPartialEq for GptPartitionType
Auto Trait Implementations§
impl Freeze for GptPartitionType
impl RefUnwindSafe for GptPartitionType
impl Send for GptPartitionType
impl Sync for GptPartitionType
impl Unpin for GptPartitionType
impl UnwindSafe for GptPartitionType
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.