Skip to main content

release_inspector

Function release_inspector 

Source
pub unsafe fn release_inspector<'b, T: EvmTypes>(evm: Evm<'_, T>) -> Evm<'b, T>
Expand description

Clears evm’s inspector and returns the EVM without the borrows the inspector held, such as to park an EVM whose inspector borrowed the lifecycle’s owner.

§Safety

An EVM’s lifetime bounds its inspector, which is cleared, and its databases and precompiles. Those must outlive 'b, the lifetime the caller chooses: they must be ones Foundry’s factories and ExecutionLifecycle installed, all of which are owned ('static).