pub struct PatternMatch {
pub pattern: Pattern,
pub offset: usize,
pub length: usize,
pub data: Vec<u8>,
pub confidence: f64,
}Expand description
Pattern match result
Fields§
§pattern: PatternPattern that matched
offset: usizeOffset where match was found
length: usizeLength of the match
data: Vec<u8>Matched data
confidence: f64Confidence score (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for PatternMatch
impl Clone for PatternMatch
Auto Trait Implementations§
impl Freeze for PatternMatch
impl RefUnwindSafe for PatternMatch
impl Send for PatternMatch
impl Sync for PatternMatch
impl Unpin for PatternMatch
impl UnsafeUnpin for PatternMatch
impl UnwindSafe for PatternMatch
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