cuprate_criterion_example/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
#![doc = include_str!("../README.md")] // See the README for crate documentation.
#![allow(unused_crate_dependencies, reason = "used in benchmarks")]

/// Shared type that all benchmarks can use.
#[expect(dead_code)]
pub struct SomeHardToCreateObject(u64);

impl From<u64> for SomeHardToCreateObject {
    /// Shared function that all benchmarks can use.
    fn from(value: u64) -> Self {
        Self(value)
    }
}