Trait gear_core::memory::GrowHandler
source · pub trait GrowHandler<Context> {
// Required methods
fn before_grow_action(
ctx: &mut Context,
mem: &mut impl Memory<Context>,
) -> Self;
fn after_grow_action(
self,
ctx: &mut Context,
mem: &mut impl Memory<Context>,
);
}
Expand description
Before and after memory grow actions.
Required Methods§
sourcefn before_grow_action(ctx: &mut Context, mem: &mut impl Memory<Context>) -> Self
fn before_grow_action(ctx: &mut Context, mem: &mut impl Memory<Context>) -> Self
Before grow action
sourcefn after_grow_action(self, ctx: &mut Context, mem: &mut impl Memory<Context>)
fn after_grow_action(self, ctx: &mut Context, mem: &mut impl Memory<Context>)
After grow action
Object Safety§
This trait is not object safe.