diff options
Diffstat (limited to 'src/crates/candelabra')
-rw-r--r-- | src/crates/candelabra/src/cost/fit.rs | 2 | ||||
-rw-r--r-- | src/crates/candelabra/src/cost/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/crates/candelabra/src/cost/fit.rs b/src/crates/candelabra/src/cost/fit.rs index ace3634..b3ae9ba 100644 --- a/src/crates/candelabra/src/cost/fit.rs +++ b/src/crates/candelabra/src/cost/fit.rs @@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize}; /// Estimates durations using a 3rd-order polynomial. #[derive(Debug, Clone, Deserialize, Serialize)] -pub struct Estimator([f64; 4]); +pub struct Estimator(pub [f64; 4]); /// Approximate cost of an action. /// This is an approximation for the number of nanoseconds it would take. diff --git a/src/crates/candelabra/src/cost/mod.rs b/src/crates/candelabra/src/cost/mod.rs index ce807b5..85adac6 100644 --- a/src/crates/candelabra/src/cost/mod.rs +++ b/src/crates/candelabra/src/cost/mod.rs @@ -24,7 +24,7 @@ use crate::{ /// Cost model for a container, capable of estimating cost of each supported operation. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct CostModel { - by_op: HashMap<String, Estimator>, + pub by_op: HashMap<String, Estimator>, } /// Information for getting & caching cost information for container implementations. |