improvement: make hexsearch structs sortable

This commit is contained in:
Greg Heartsfield 2022-12-17 07:49:05 -06:00
parent e8557d421b
commit 7a4c9266ec

View File

@ -3,7 +3,7 @@ use crate::utils::is_hex;
use hex;
/// Types of hexadecimal queries.
#[derive(PartialEq, Eq, Debug, Clone)]
#[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Clone)]
pub enum HexSearch {
// when no range is needed, exact 32-byte
Exact(Vec<u8>),