File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,17 @@ pub enum Error {
131
131
#[ error( "conflict of partition GUIDs" ) ]
132
132
ConflictPartitionGUID ,
133
133
/// An error that occurs when a partition has an invalid boundary.
134
+ ///
134
135
/// The end sector must be greater or equal to the start sector of the partition.
136
+ ///
135
137
/// Partitions must fit within the disk and must not overlap.
136
138
#[ error(
137
139
"invalid partition boundaries: partitions must have positive size, must not overlap, \
138
140
and must fit within the disk"
139
141
) ]
140
142
InvalidPartitionBoundaries ,
141
143
/// An error that occurs when the user provide an invalid partition number.
144
+ ///
142
145
/// The partition number must be between 1 and `number_of_partition_entries` (usually 128)
143
146
/// included.
144
147
#[ error( "invalid partition number: {0}" ) ]
@@ -874,8 +877,10 @@ impl GPT {
874
877
}
875
878
876
879
/// Find free spots in the partition table.
880
+ ///
877
881
/// This function will return a vector of tuple with on the left: the starting LBA of the free
878
882
/// spot; and on the right: the size (in sectors) of the free spot.
883
+ ///
879
884
/// This function will automatically align with the alignment defined in the `GPT`.
880
885
///
881
886
/// # Examples
@@ -964,6 +969,7 @@ impl GPT {
964
969
965
970
/// Find the last place (most on the right) where you could start a new partition of the size
966
971
/// given in parameter.
972
+ ///
967
973
/// This function will automatically align with the alignment defined in the `GPT`.
968
974
///
969
975
/// # Examples
You can’t perform that action at this time.
0 commit comments