ssdeep::constraints

Trait ConstrainedBlockHashSizes

source
pub trait ConstrainedBlockHashSizes: SealedBlockHashSizes {
    const MAX_BLOCK_HASH_SIZE_1: usize;
    const MAX_BLOCK_HASH_SIZE_2: usize;
}
Expand description

A trait to constrain block hash sizes.

This type is implemented for BlockHashSizes with following sizes:

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

Required Associated Constants§

source

const MAX_BLOCK_HASH_SIZE_1: usize

The maximum size of the block hash 1.

source

const MAX_BLOCK_HASH_SIZE_2: usize

The maximum size of the block hash 2.

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 S1: usize, const S2: usize> ConstrainedBlockHashSizes for BlockHashSizes<S1, S2>
where BlockHashSizes<S1, S2>: SealedBlockHashSizes,