Expand description
Partition-table layer.
Two implementations in v1: mbr::Mbr (4-primary MBR) and gpt::Gpt
(128-entry GPT with protective MBR + backup header). Both go through the
PartitionTable trait so higher layers can target either uniformly.
A partition table is just metadata — it does not allocate or zero data
blocks beyond its own header sectors. To get a filesystem-grade view of a
single partition’s bytes, call slice_partition which builds a
SlicedBackend covering exactly the partition’s LBA range.
Re-exports§
Modules§
Structs§
- Partition
- One partition entry, unified across MBR and GPT.
Enums§
- Partition
Kind - Semantic partition type. Convertible to either an MBR
u8code or a GPT type UUID; an escape-hatch variant exists for each direction.
Traits§
- Partition
Table - Common interface implemented by
MbrandGpt. Object-safe enough that higher layers can hold aBox<dyn PartitionTable>if useful.
Functions§
- slice_
partition - Build a
SlicedBackendthat exposes exactly the bytes ofpt.partitions()[index].