#[repr(transparent)]pub struct GptPartitionType(pub Guid);
Expand description
GUID that defines the type of partition. Only three values are defined in the UEFI specification, OS vendors define their own Partition Type GUIDs.
Tuple Fields§
§0: Guid
Implementations§
source§impl GptPartitionType
impl GptPartitionType
sourcepub const UNUSED_ENTRY: GptPartitionType = _
pub const UNUSED_ENTRY: GptPartitionType = _
Indicates a partition entry is unused.
sourcepub const EFI_SYSTEM_PARTITION: GptPartitionType = _
pub const EFI_SYSTEM_PARTITION: GptPartitionType = _
EFI System Partition.
sourcepub const LEGACY_MBR: GptPartitionType = _
pub const LEGACY_MBR: GptPartitionType = _
Partition containing a legacy MBR.
Trait Implementations§
source§impl Clone for GptPartitionType
impl Clone for GptPartitionType
source§fn clone(&self) -> GptPartitionType
fn clone(&self) -> GptPartitionType
Returns a copy 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 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§fn eq(&self, other: &GptPartitionType) -> bool
fn eq(&self, other: &GptPartitionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GptPartitionType
impl PartialOrd for GptPartitionType
source§fn partial_cmp(&self, other: &GptPartitionType) -> Option<Ordering>
fn partial_cmp(&self, other: &GptPartitionType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for GptPartitionType
impl Eq 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