Skip to main content

rolled_up_total

Function rolled_up_total 

Source
pub fn rolled_up_total(
    view: &CostView<'_>,
    item: &CostItem<'_>,
) -> Result<f64, CostRelationError>
Expand description

Total the direct values of every descendant, excluding the item itself.

ยงErrors

Propagates CostRelationError when the nesting graph cycles or exceeds its depth budget.