pub const fn predict_weight_from_slices(
    inputs: &[InputWeightPrediction],
    output_script_lens: &[usize]
) -> Weight
Expand description

Predicts the weight of a to-be-constructed transaction in const context.

This is a const version of predict_weight which only allows slices due to current Rust limitations around const fn. Because of these limitations it may be less efficient than predict_weight and thus is intended to be only used in const context.

Please see the documentation of predict_weight to learn more about this function.