pub enum Command {
SetLabel {
space: AddressSpace,
offset: AddressValue,
label: Option<String>,
},
SetEquivalent {
space: AddressSpace,
offset: AddressValue,
equivalent: Equivalent,
},
AutoDisassemble {
space: AddressSpace,
start: AddressValue,
},
ClearEquivalents {
space: AddressSpace,
offset: AddressValue,
size: AddressValue,
},
SetComment {
space: AddressSpace,
offset: AddressValue,
comment: Option<String>,
},
MapBytes {
space: AddressSpace,
offset: AddressValue,
file: String,
file_offset: usize,
size: AddressValue,
},
ClearBytes {
space: AddressSpace,
offset: AddressValue,
size: AddressValue,
},
SetConstantBytes {
space: AddressSpace,
offset: AddressValue,
size: AddressValue,
value: u8,
},
SetFunction {
space: AddressSpace,
offset: AddressValue,
function: Option<Function>,
},
}Variants§
SetLabel
SetEquivalent
AutoDisassemble
ClearEquivalents
SetComment
MapBytes
ClearBytes
SetConstantBytes
SetFunction
Implementations§
Source§impl Command
impl Command
pub fn set_label( space: AddressSpace, offset: AddressValue, label: impl Into<String>, ) -> Self
pub fn clear_label(space: AddressSpace, offset: AddressValue) -> Self
pub fn auto_disassemble(space: AddressSpace, start: AddressValue) -> Self
pub fn set_equivalent( space: AddressSpace, offset: AddressValue, equivalent: Equivalent, ) -> Self
pub fn clear_equivalents( space: AddressSpace, offset: AddressValue, size: AddressValue, ) -> Self
pub fn set_comment( space: AddressSpace, offset: AddressValue, comment: impl Into<String>, ) -> Self
pub fn clear_comment(space: AddressSpace, offset: AddressValue) -> Self
pub fn map_bytes( space: AddressSpace, offset: AddressValue, file: impl Into<String>, file_offset: usize, size: AddressValue, ) -> Self
pub fn clear_bytes( space: AddressSpace, offset: AddressValue, size: AddressValue, ) -> Self
pub fn set_constant_bytes( space: AddressSpace, offset: AddressValue, size: AddressValue, value: u8, ) -> Self
pub fn set_function( space: AddressSpace, offset: AddressValue, function: Function, ) -> Self
pub fn clear_function(space: AddressSpace, offset: AddressValue) -> Self
pub fn apply( self, db: &mut Db, env: Option<&dyn Environment>, ) -> Result<Vec<Command>, Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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