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§
sourcefn type_size(&self, ty: &ConcreteTypeId) -> usize
fn type_size(&self, ty: &ConcreteTypeId) -> usize
Provides the sizes of types.
Implementations on Foreign Types§
source§impl CostInfoProvider for TypeSizeMap
impl CostInfoProvider for TypeSizeMap
Implementation of CostInfoProvider for TypeSizeMap.