Skip to main content

quantity_value

Function quantity_value 

Source
pub fn quantity_value<'a>(
    resolved: &'a [ResolvedQuantitySet],
    set_name: &str,
    quantity_name: &str,
) -> Option<&'a Quantity>
Expand description

Find a single quantity by set name and quantity name.

Returns the quantity from the occurrence’s set of that name when the occurrence states one, else from the type’s. A quantity absent from the winning set is None even if the shadowed type set has it.