Struct libblkid_rs::BlkidPartlist
source · pub struct BlkidPartlist(/* private fields */);
Expand description
A handle for traversing a list of partitions.
Implementations§
source§impl BlkidPartlist
impl BlkidPartlist
sourcepub fn number_of_partitions(&mut self) -> Result<c_int>
pub fn number_of_partitions(&mut self) -> Result<c_int>
Get the number of partitions in the list.
sourcepub fn get_table(&mut self) -> Result<BlkidParttable>
pub fn get_table(&mut self) -> Result<BlkidParttable>
Get the partition table for a list of partitions.
sourcepub fn get_partition(&mut self, index: c_int) -> Result<BlkidPartition>
pub fn get_partition(&mut self, index: c_int) -> Result<BlkidPartition>
Get a partition at the given index of the list.
sourcepub fn get_partition_by_partno(&mut self, num: c_int) -> Result<BlkidPartition>
pub fn get_partition_by_partno(&mut self, num: c_int) -> Result<BlkidPartition>
Get a partition by the number listed in the partition table. Correctly handles “out-of-order” partition tables.
sourcepub fn get_partition_by_devno(
&mut self,
dev: &BlkidDevno
) -> Result<BlkidPartition>
pub fn get_partition_by_devno( &mut self, dev: &BlkidDevno ) -> Result<BlkidPartition>
Get a partition using the device number of a partition.
Auto Trait Implementations§
impl Freeze for BlkidPartlist
impl RefUnwindSafe for BlkidPartlist
impl !Send for BlkidPartlist
impl !Sync for BlkidPartlist
impl Unpin for BlkidPartlist
impl UnwindSafe for BlkidPartlist
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