We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 985dbaf commit be403a5Copy full SHA for be403a5
src/lib.rs
@@ -18,6 +18,13 @@ use me::ME;
18
// An empty byte in a NOR flash is all-1's.
19
pub const EMPTY: u8 = 0xff;
20
21
+/// Common method for anything that has removable parts, such as directories.
22
+pub trait Removables {
23
+ /// Get removable ranges relative to the start of a section or directory.
24
+ /// The respective section/directory needs to know its own offset.
25
+ fn removables(self: &Self, retention_list: &Vec<String>) -> Vec<core::ops::Range<usize>>;
26
+}
27
+
28
#[derive(Serialize, Deserialize, Clone, Debug)]
29
pub struct Firmware {
30
pub ifd: Result<IFD, IfdError>,
0 commit comments