pub struct PartitionTable<'a> { /* private fields */ }Expand description
A partition table.
Implementations§
Source§impl<'a> PartitionTable<'a>
impl<'a> PartitionTable<'a>
Sourcepub fn get_partition(&self, index: usize) -> Result<PartitionEntry<'a>, Error>
pub fn get_partition(&self, index: usize) -> Result<PartitionEntry<'a>, Error>
Get a partition entry.
Sourcepub fn find_partition(
&self,
pt: PartitionType,
) -> Result<Option<PartitionEntry<'a>>, Error>
pub fn find_partition( &self, pt: PartitionType, ) -> Result<Option<PartitionEntry<'a>>, Error>
Get the first partition matching the given partition type.
Auto Trait Implementations§
impl<'a> Freeze for PartitionTable<'a>
impl<'a> RefUnwindSafe for PartitionTable<'a>
impl<'a> Send for PartitionTable<'a>
impl<'a> Sync for PartitionTable<'a>
impl<'a> Unpin for PartitionTable<'a>
impl<'a> UnwindSafe for PartitionTable<'a>
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