[−][src]Struct libblkid_rs::BlkidPartlist
A handle for traversing a list of partitions.
Implementations
impl BlkidPartlist[src]
pub fn number_of_partitions(&mut self) -> Result<c_int>[src]
Get the number of partitions in the list.
pub fn get_table(&mut self) -> Result<BlkidParttable>[src]
Get the partition table for a list of partitions.
pub fn get_partition(&mut self, index: c_int) -> Result<BlkidPartition>[src]
Get a partition at the given index of the list.
pub fn get_partition_by_partno(&mut self, num: c_int) -> Result<BlkidPartition>[src]
Get a partition by the number listed in the partition table. Correctly handles "out-of-order" partition tables.
pub fn get_partition_by_devno(
&mut self,
dev: &BlkidDevno
) -> Result<BlkidPartition>[src]
&mut self,
dev: &BlkidDevno
) -> Result<BlkidPartition>
Get a partition using the device number of a partition.
Auto Trait Implementations
impl RefUnwindSafe for BlkidPartlist
impl !Send for BlkidPartlist
impl !Sync for BlkidPartlist
impl Unpin for BlkidPartlist
impl UnwindSafe for BlkidPartlist
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, 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>,