Struct ic_wasm::utils::FunctionCost
source · [−]pub struct FunctionCost(_);Implementations
sourceimpl FunctionCost
impl FunctionCost
pub fn new(m: &Module) -> Self
pub fn get_cost(&self, id: FunctionId) -> (i64, InjectionKind)
Auto Trait Implementations
impl RefUnwindSafe for FunctionCost
impl Send for FunctionCost
impl Sync for FunctionCost
impl Unpin for FunctionCost
impl UnwindSafe for FunctionCost
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more