[][src]Struct libblkid_rs::BlkidPartlist

pub struct 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]

Get a partition using the device number of a partition.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.