#[repr(C, align(1))]pub struct GPTPartition {
pub part_type: Uuid,
pub id: Uuid,
pub first_lba: LittleEndian<u64>,
pub last_lba: LittleEndian<u64>,
pub attr: [u8; 8],
pub name: [LittleEndian<u16>; 36],
}
Fields§
§part_type: Uuid
§id: Uuid
§first_lba: LittleEndian<u64>
§last_lba: LittleEndian<u64>
§attr: [u8; 8]
§name: [LittleEndian<u16>; 36]
Implementations§
Source§impl GPTPartition
impl GPTPartition
pub unsafe fn partition_table_checksum(table: &[GPTPartition]) -> u32
pub fn get_name(&self) -> Result<String, DecodeUtf16Error>
Trait Implementations§
Source§impl Clone for GPTPartition
impl Clone for GPTPartition
Source§fn clone(&self) -> GPTPartition
fn clone(&self) -> GPTPartition
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 GPTPartition
impl Debug for GPTPartition
Source§impl PartialEq for GPTPartition
impl PartialEq for GPTPartition
impl Copy for GPTPartition
impl Eq for GPTPartition
impl StructuralPartialEq for GPTPartition
Auto Trait Implementations§
impl Freeze for GPTPartition
impl RefUnwindSafe for GPTPartition
impl Send for GPTPartition
impl Sync for GPTPartition
impl Unpin for GPTPartition
impl UnwindSafe for GPTPartition
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