basic_pattern_scanner 1.0.2

Fast no-dependencies byte-pattern scanner with IDA-style and nibble-mask pattern support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::borrow::Cow;

use crate::pattern::types::{PatternKind, PatternRepr};

pub type InternalResult<T> = Result<T, Error>;

/// Represents the module errors
#[derive(Debug)]
pub enum Error {
	InvalidPattern {
		kind: PatternKind,
		repr: PatternRepr,
		hint: Option<Cow<'static, String>>,
	},
}