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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.