to_vec_checked

Function to_vec_checked 

Source
pub fn to_vec_checked(
    quantity_slice: &[DynQuantity<f64>],
) -> Result<Vec<f64>, ConversionError>
Expand description

Checks if all units of the DynQuantity elements are identical. If that is the case, it converts the slice to a vector of their values V.