Struct libpart::mbr::MBR
[−]
[src]
pub struct MBR { /* fields omitted */ }
A structure representing a Master Boot Record
Methods
impl MBR
[src]
fn new() -> MBR
Initialize a new empty MBR
fn load<R: Read + Seek>(read: &mut R) -> IOResult<MBR>
Load a MBR from stream
fn write_mbr<W: Write + Seek>(&self, write: &mut W) -> IOResult<()>
Load a GPT from stream
fn partitions(&self) -> &[Option<PartitionEntry>]
Get a list of all primary partitions
fn partition_count(&self) -> u8
Count all primary partitions. May be changed in the future to also include logical partitions, once they are supported by this library
fn primary_partition_count(&self) -> u8
Count all primary partitions. Does include the host partition for logical partitions