Enum hex_patch::app::asm::assembly_line::AssemblyLine
source · pub enum AssemblyLine {
Instruction(InstructionTag),
SectionTag(SectionTag),
}Variants§
Instruction(InstructionTag)
SectionTag(SectionTag)
Implementations§
source§impl AssemblyLine
impl AssemblyLine
pub fn file_address(&self) -> u64
pub fn virtual_address(&self) -> u64
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn to_line( &self, color_settings: &ColorSettings, current_byte_index: usize, header: &Header, address_min_width: usize, ) -> Line<'_>
pub fn is_same_instruction(&self, other: &AssemblyLine) -> bool
Trait Implementations§
source§impl Clone for AssemblyLine
impl Clone for AssemblyLine
source§fn clone(&self) -> AssemblyLine
fn clone(&self) -> AssemblyLine
Returns a copy 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 AssemblyLine
impl Debug for AssemblyLine
source§impl From<&AssemblyLine> for InstructionInfo
impl From<&AssemblyLine> for InstructionInfo
source§fn from(value: &AssemblyLine) -> Self
fn from(value: &AssemblyLine) -> Self
Converts to this type from the input type.
source§impl PartialEq for AssemblyLine
impl PartialEq for AssemblyLine
source§fn eq(&self, other: &AssemblyLine) -> bool
fn eq(&self, other: &AssemblyLine) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AssemblyLine
impl StructuralPartialEq for AssemblyLine
Auto Trait Implementations§
impl Freeze for AssemblyLine
impl RefUnwindSafe for AssemblyLine
impl Send for AssemblyLine
impl Sync for AssemblyLine
impl Unpin for AssemblyLine
impl UnwindSafe for AssemblyLine
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more