Trait malwaredb_types::utils::EntropyCalc

source ·
pub trait EntropyCalc {
    // Required method
    fn entropy(&self) -> f32;
}
Expand description

Calculate the entropy of bytes

Required Methods§

source

fn entropy(&self) -> f32

Calculate entropy (0-8) for some sequence

Implementations on Foreign Types§

source§

impl EntropyCalc for &[u8]

source§

fn entropy(&self) -> f32

source§

impl EntropyCalc for Vec<u8>

source§

fn entropy(&self) -> f32

Implementors§