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§

source

fn before_grow_action(ctx: &mut Context, mem: &mut impl Memory<Context>) -> Self

Before grow action

source

fn after_grow_action(self, ctx: &mut Context, mem: &mut impl Memory<Context>)

After grow action

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Context> GrowHandler<Context> for NoopGrowHandler