Struct libpart::mbr::MBR [] [src]

pub struct MBR { /* fields omitted */ }

A structure representing a Master Boot Record

Methods

impl MBR
[src]

Initialize a new empty MBR

Load a MBR from stream

Load a GPT from stream

Get a list of all primary partitions

Count all primary partitions. May be changed in the future to also include logical partitions, once they are supported by this library

Count all primary partitions. Does include the host partition for logical partitions

Trait Implementations

impl Default for MBR
[src]

Returns the "default value" for a type. Read more

impl Debug for MBR
[src]

Formats the value using the given formatter.