From 8862696926173104957729683832591438161557 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 27 Dec 2024 16:14:46 -0500 Subject: Render Layers --- rust/src/disassembly.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rust/src/disassembly.rs') 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, 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 for BNInstructionTextTokenType { } } +impl Eq for InstructionTextTokenKind {} + #[derive(Clone, Copy, PartialEq, Eq, Debug)] pub enum InstructionTextTokenContext { Normal, -- cgit v1.3.1