chore: impl Versionize for NormalizedHammingWeightBound

This commit is contained in:
Thomas Montaigu
2025-12-09 15:49:37 +01:00
committed by tmontaigu
parent 329677bd26
commit 4f14343668
2 changed files with 7 additions and 1 deletions

View File

@@ -187,3 +187,8 @@ pub enum NoiseEstimationMeasureBoundVersions {
pub enum ChunkSizeVersions {
V0(ChunkSize),
}
#[derive(VersionsDispatch)]
pub enum NormalizedHammingWeightBoundVersions {
V0(NormalizedHammingWeightBound),
}

View File

@@ -413,7 +413,8 @@ pub struct NoiseEstimationMeasureBound(pub f64);
pub struct ChunkSize(pub usize);
/// The max normalized hamming weight
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize, Versionize)]
#[versionize(NormalizedHammingWeightBoundVersions)]
pub struct NormalizedHammingWeightBound(f64);
impl NormalizedHammingWeightBound {