[−][src]Struct disk_initializer::gpt::GPTPartitionEntry
A GPT partition entry.
Fields
partition_type: RawUUIDPartition type GUID.
unique_id: RawUUIDPartition GUID.
first_lba: u64First LBA of the partition.
last_lba: u64Last LBA of the partition (inclusive).
attribute: u64Attribute flags.
partition_name: [u16; 36]Partition name in UTF16LE.
Implementations
impl GPTPartitionEntry[src]
pub fn set_partition_type(&mut self, uuid: Uuid)[src]
Set the partition type GUID.
pub fn set_unique_id(&mut self, uuid: Uuid)[src]
Set the unique partition GUID.
pub fn set_name(&mut self, name: &str)[src]
Set the name of the partition.
pub fn from_bytes(bytes: [u8; 128]) -> Self[src]
Create a GPTPartitionEntry from bytes.
pub fn read(&mut self, bytes: [u8; 128])[src]
Read the content of a raw array into a GPTPartitionEntry.
pub fn write(&self) -> [u8; 128][src]
Conver the structure data to a raw array.
Trait Implementations
impl Clone for GPTPartitionEntry[src]
fn clone(&self) -> GPTPartitionEntry[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for GPTPartitionEntry[src]
impl Debug for GPTPartitionEntry[src]
impl Default for GPTPartitionEntry[src]
Auto Trait Implementations
impl RefUnwindSafe for GPTPartitionEntry
impl Send for GPTPartitionEntry
impl Sync for GPTPartitionEntry
impl Unpin for GPTPartitionEntry
impl UnwindSafe for GPTPartitionEntry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,