Struct libpart::gpt::GPTTable [] [src]

pub struct GPTTable { /* fields omitted */ }

Methods

impl GPTTable
[src]

Load a GPT from file or stream

Write a GPT to file. will write both primary and backup

Gets the amount of partitions that are in use.

Please note that if there is an empty part inbetween, it is not counted. So say you have /dev/sda1, /dev/sda2 and /dev/sda4, but no /dev/sda3, this would still return 3

Gives you readonly access to all partitions

Get the first free partition ID

Returns Some(id) if there is still space
Returns None if all partition slots are occupied

Set a partition entry to whatever you specified

Mark a partition slot as empty

Trait Implementations

impl Debug for GPTTable
[src]

Formats the value using the given formatter.