ssdeep::constraints

Trait ConstrainedBlockHashSize

source
pub trait ConstrainedBlockHashSize: SealedBlockHashSize {
    const SIZE: usize;
}
Expand description

A trait to constrain block hash size.

This type is implemented for BlockHashSize with following sizes:

Note that this trait is intentionally designed to be non-extensible (using the sealed trait pattern).

Required Associated Constants§

source

const SIZE: usize

The maximum size of a block hash.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

source§

impl<const SZ_BH: usize> ConstrainedBlockHashSize for BlockHashSize<SZ_BH>
where BlockHashSize<SZ_BH>: SealedBlockHashSize,

source§

const SIZE: usize = SZ_BH