pub enum PatternType {
Uniform,
LowEntropy,
Periodic {
period: usize,
},
TextLike,
HighEntropy,
Random,
}Expand description
Detected pattern types in the data.
Variants§
Uniform
Uniform single byte (perfect RLE candidate)
LowEntropy
Low entropy with few unique values
Periodic
Periodic pattern detected (e.g., ABCABC)
TextLike
Text-like with common byte ranges
HighEntropy
High entropy, likely incompressible
Random
Random/encrypted, definitely incompressible
Trait Implementations§
Source§impl Clone for PatternType
impl Clone for PatternType
Source§fn clone(&self) -> PatternType
fn clone(&self) -> PatternType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatternType
impl Debug for PatternType
Source§impl PartialEq for PatternType
impl PartialEq for PatternType
impl Copy for PatternType
impl Eq for PatternType
impl StructuralPartialEq for PatternType
Auto Trait Implementations§
impl Freeze for PatternType
impl RefUnwindSafe for PatternType
impl Send for PatternType
impl Sync for PatternType
impl Unpin for PatternType
impl UnwindSafe for PatternType
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