pub struct BlockFingerprint {
pub entropy: f32,
pub histogram: [u8; 16],
pub hash: u64,
}Expand description
Structural fingerprint for a single block.
Fields§
§entropy: f32Shannon entropy of the block content (0.0 = uniform, ~8.0 = max random).
histogram: [u8; 16]Compressed byte distribution (16 buckets, normalized to 0..255).
hash: u64FNV-1a hash of the histogram for fast comparison.
Trait Implementations§
Source§impl Clone for BlockFingerprint
impl Clone for BlockFingerprint
Source§fn clone(&self) -> BlockFingerprint
fn clone(&self) -> BlockFingerprint
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 moreAuto Trait Implementations§
impl Freeze for BlockFingerprint
impl RefUnwindSafe for BlockFingerprint
impl Send for BlockFingerprint
impl Sync for BlockFingerprint
impl Unpin for BlockFingerprint
impl UnsafeUnpin for BlockFingerprint
impl UnwindSafe for BlockFingerprint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more