Skip to main content

ExternalCodeSizeEstimator

Trait ExternalCodeSizeEstimator 

Source
pub trait ExternalCodeSizeEstimator {
    // Required method
    fn estimate_size(
        &self,
        function_id: ConcreteFunctionWithBodyId,
    ) -> Maybe<isize>;
}
Expand description

A trait for estimation of the code size of a function.

Required Methods§

Source

fn estimate_size(&self, function_id: ConcreteFunctionWithBodyId) -> Maybe<isize>

Returns estimated size of the function with the given id.

Implementors§