pub struct PartitionRecord { /* private fields */ }Expand description
Used to store data about partitions in the MBR
Implementations§
Source§impl PartitionRecord
impl PartitionRecord
Sourcepub fn from_bytes(bytes: &[u8; 16]) -> Self
pub fn from_bytes(bytes: &[u8; 16]) -> Self
Create a partition record from bytes
Sourcepub fn get_start_pos(&self) -> u64
pub fn get_start_pos(&self) -> u64
Get the starting position of a partition
Sourcepub fn get_end_pos(&self) -> u64
pub fn get_end_pos(&self) -> u64
Get the end position of a partition
Sourcepub fn get_partition_type(&self) -> PartitionType
pub fn get_partition_type(&self) -> PartitionType
Get the type of a partition
Sourcepub fn is_bootable(&self) -> bool
pub fn is_bootable(&self) -> bool
Check to see if the partition’s boot flag is set
Trait Implementations§
Source§impl Clone for PartitionRecord
impl Clone for PartitionRecord
Source§fn clone(&self) -> PartitionRecord
fn clone(&self) -> PartitionRecord
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 PartitionRecord
impl Debug for PartitionRecord
Source§impl Default for PartitionRecord
impl Default for PartitionRecord
Source§fn default() -> PartitionRecord
fn default() -> PartitionRecord
Returns the “default value” for a type. Read more
impl Copy for PartitionRecord
Auto Trait Implementations§
impl Freeze for PartitionRecord
impl RefUnwindSafe for PartitionRecord
impl Send for PartitionRecord
impl Sync for PartitionRecord
impl Unpin for PartitionRecord
impl UnwindSafe for PartitionRecord
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