We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fallback_expr
1 parent 4ed8ab3 commit fee2654Copy full SHA for fee2654
src/graph/formulas/fallback.rs
@@ -9,27 +9,6 @@ use std::collections::BTreeSet;
9
10
use super::expr::Expr;
11
12
-impl<N, E> ComponentGraph<N, E>
13
-where
14
- N: Node,
15
- E: Edge,
16
-{
17
- /// Returns a formula expression with fallbacks where possible for the `sum`
18
- /// of the given component ids.
19
- pub(super) fn fallback_expr(
20
- &self,
21
- component_ids: impl IntoIterator<Item = u64>,
22
- prefer_meters: bool,
23
- meter_fallback_for_meters: bool,
24
- ) -> Result<Expr, Error> {
25
- FallbackExpr {
26
- prefer_meters,
27
- meter_fallback_for_meters,
28
- }
29
- .generate(self, BTreeSet::from_iter(component_ids))
30
31
-}
32
-
33
pub(crate) struct FallbackExpr {
34
pub(crate) prefer_meters: bool,
35
pub(crate) meter_fallback_for_meters: bool,
0 commit comments