pub trait GrowHandler {
    // Required methods
    fn before_grow_action(mem: &mut impl Memory) -> Self;
    fn after_grow_action(self, mem: &mut impl Memory);
}
Expand description

Before and after memory grow actions.

Required Methods§

source

fn before_grow_action(mem: &mut impl Memory) -> Self

Before grow action

source

fn after_grow_action(self, mem: &mut impl Memory)

After grow action

Object Safety§

This trait is not object safe.

Implementors§