Struct blkid::part_list::PartList

source ·
pub struct PartList(_);
Expand description

List of all detected partitions and partitions tables

Implementations§

Returns partition object.

It’s possible that the list of partitions is empty, but there is a valid partition table on the disk. This happen when on-disk details about partitions are unknown or the partition table is empty.

See also Self::get_table.

Returns partition object by the partiton number (e.g. N from sdaN).

This does not assume any order of the input blkid_partlist. And correctly handles “out of order” partition tables. partition N is located after partition N+1 on the disk.

Returns all partitions

Returns partition object by requested partition.

This tries to get start and size for devno from sysfs and returns a partition from list which matches with the values from sysfs.

This function is necessary when you want to make a relation between an entry in the partition table (list) and block devices in your system.

Returns PartTable or None if there is not a partition table on the device

Returns number of partitions in the list

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.