pub trait CostInfoProvider {
    // Required method
    fn type_size(&self, ty: &ConcreteTypeId) -> usize;
}
Expand description

Trait for providing extra information required for calculating costs for a specific libfunc invocation.

Required Methods§

source

fn type_size(&self, ty: &ConcreteTypeId) -> usize

Provides the sizes of types.

Implementations on Foreign Types§

source§

impl CostInfoProvider for TypeSizeMap

Implementation of CostInfoProvider for TypeSizeMap.

Implementors§

source§

impl<InfoProvider: InvocationCostInfoProvider> CostInfoProvider for InfoProvider