diff options
| author | Glenn Smith <glenn@vector35.com> | 2024-12-27 16:14:46 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-01-30 17:20:05 -0500 |
| commit | 8862696926173104957729683832591438161557 (patch) | |
| tree | 78ba6d7dc8144430136086c8dc84726171eec8ab /rust/src/disassembly.rs | |
| parent | 5a5426d030b6be26d4564ba1eba2d8a275533256 (diff) | |
Render Layers
Diffstat (limited to 'rust/src/disassembly.rs')
| -rw-r--r-- | rust/src/disassembly.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rust/src/disassembly.rs b/rust/src/disassembly.rs index 99938e5f..5f9ed559 100644 --- a/rust/src/disassembly.rs +++ b/rust/src/disassembly.rs @@ -30,9 +30,10 @@ pub type DisassemblyOption = BNDisassemblyOption; pub type InstructionTextTokenType = BNInstructionTextTokenType; pub type StringType = BNStringType; -#[derive(Clone, PartialEq, Debug, Default)] +#[derive(Clone, PartialEq, Debug, Default, Eq)] pub struct DisassemblyTextLine { pub address: u64, + // TODO: This is not always available. pub instruction_index: usize, pub tokens: Vec<InstructionTextToken>, pub highlight: HighlightColor, @@ -234,7 +235,7 @@ impl DisassemblyTextLineTypeInfo { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct InstructionTextToken { pub address: u64, pub text: String, @@ -882,6 +883,8 @@ impl From<InstructionTextTokenKind> for BNInstructionTextTokenType { } } +impl Eq for InstructionTextTokenKind {} + #[derive(Clone, Copy, PartialEq, Eq, Debug)] pub enum InstructionTextTokenContext { Normal, |
