pub struct AdvancedPatchOptions { /* private fields */ }Expand description
Represents the advanced options for a patch operation, requiring, at least, the ROM data and the patch location.
Several options can be added to the patch operation, like include paths, defines, warning settings, memory files, etc.
See the PatchOption enum for all the available options.
Creation of this struct should be done with the AdvancedPatchOptions::new method.
Implementations§
Source§impl AdvancedPatchOptions
impl AdvancedPatchOptions
Sourcepub fn new() -> AdvancedPatchOptions
pub fn new() -> AdvancedPatchOptions
Creates a new AdvancedPatchOptions, with all default values.
Sourcepub fn from(options: Vec<PatchOption>) -> AdvancedPatchOptions
pub fn from(options: Vec<PatchOption>) -> AdvancedPatchOptions
Creates a new AdvancedPatchOptions with the options provided.
Sourcepub fn option(self, option: PatchOption) -> AdvancedPatchOptions
pub fn option(self, option: PatchOption) -> AdvancedPatchOptions
Adds an option to the patch operation.
Sourcepub fn options(self, options: Vec<PatchOption>) -> AdvancedPatchOptions
pub fn options(self, options: Vec<PatchOption>) -> AdvancedPatchOptions
Adds multiple options to the patch operation.
Trait Implementations§
Source§impl Clone for AdvancedPatchOptions
impl Clone for AdvancedPatchOptions
Source§fn clone(&self) -> AdvancedPatchOptions
fn clone(&self) -> AdvancedPatchOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdvancedPatchOptions
impl Debug for AdvancedPatchOptions
Auto Trait Implementations§
impl Freeze for AdvancedPatchOptions
impl RefUnwindSafe for AdvancedPatchOptions
impl Send for AdvancedPatchOptions
impl Sync for AdvancedPatchOptions
impl Unpin for AdvancedPatchOptions
impl UnwindSafe for AdvancedPatchOptions
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