criterion_plot/
traits.rs
1pub trait Configure<This> {
5 type Properties;
7
8 fn configure<F>(&mut self, this: This, function: F) -> &mut Self
10 where
11 F: FnOnce(&mut Self::Properties) -> &mut Self::Properties;
12}
13
14pub trait Data {
16 fn f64(self) -> f64;
18}
19
20pub trait Plot<This> {
22 type Properties;
24
25 fn plot<F>(&mut self, this: This, function: F) -> &mut Self
27 where
28 F: FnOnce(&mut Self::Properties) -> &mut Self::Properties;
29}
30
31pub trait Set<T> {
33 fn set(&mut self, value: T) -> &mut Self;
35}