aboutsummaryrefslogtreecommitdiff
path: root/src/crates/candelabra
diff options
context:
space:
mode:
authorAria <me@aria.rip>2024-01-17 13:10:48 +0000
committerAria <me@aria.rip>2024-01-17 13:14:43 +0000
commit3a58cabd192c5ed1d5a7e62f861b890e3c8cdb58 (patch)
tree1986b830a5bf7a539c3977bbce5fc8d479e44186 /src/crates/candelabra
parent1fedc0261e47efc4510887c868ebaf0f6c37e28b (diff)
feat(cli): better output for cost model command
Diffstat (limited to 'src/crates/candelabra')
-rw-r--r--src/crates/candelabra/src/cost/fit.rs2
-rw-r--r--src/crates/candelabra/src/cost/mod.rs2
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.