Skip to main content

GrowHandler

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Context> GrowHandler<Context> for NoopGrowHandler