Struct object_rewrite::Options
source · #[non_exhaustive]pub struct Options {
pub delete_symbols: HashSet<Vec<u8>>,
pub rename_symbols: HashMap<Vec<u8>, Vec<u8>>,
pub delete_sections: HashSet<Vec<u8>>,
pub rename_sections: HashMap<Vec<u8>, Vec<u8>>,
pub elf: ElfOptions,
}
Expand description
Options for modifying a file.
This is used as an argument to the Rewriter::modify
method.
The options are listed in the order they are processed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.delete_symbols: HashSet<Vec<u8>>
Delete symbols from the symbol table.
rename_symbols: HashMap<Vec<u8>, Vec<u8>>
Rename symbols in the symbol table.
delete_sections: HashSet<Vec<u8>>
Delete sections from the file.
rename_sections: HashMap<Vec<u8>, Vec<u8>>
Rename sections in the file.
elf: ElfOptions
Options that are specific to ELF files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more