pub struct StackRecycler { /* private fields */ }
Expand description

Used to recycle stacks instead of allocating them repeatedly.

Implementations

Limit stacks created by this recycler to

  • value_stack_limit bytes for values and
  • call_stack_limit levels for calls.

Clears any values left on the stack to avoid leaking them to future export invocations.

This is a secondary defense to prevent modules from exploiting faulty stack handling in the interpreter.

Do note that there are additional channels that can leak information into an untrusted module.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.