pub fn snapshot(ctx: &mut impl AsContextMut, instance: &wasmtime::Instance) -> Snapshot {
    log::debug!("Snapshotting the initialized state");

    let globals = snapshot_globals(&mut *ctx, instance);
    let (memory_mins, data_segments) = snapshot_memories(&mut *ctx, instance);
    let instantiations = snapshot_instantiations(&mut *ctx, instance);

    Snapshot {
        globals,
        memory_mins,
        data_segments,
        instantiations,
    }
}
/// Snapshot the given instance's globals, memories, and instances from the Wasm
/// defaults.
//
// TODO: when we support reference types, we will have to snapshot tables.
Snapshot the given instance's globals, memories, and instances from the Wasm
defaults.

when we support reference types, we will have to snapshot tables.
Snapshot the given instance ' s globals memories and instances from the Wasm defaults . when we support reference types we will have to snapshot tables .
pub fn snapshot(ctx: &mut impl AsContextMut, instance: &wasmtime::Instance) -> Snapshot {
    log::debug!("Snapshotting the initialized state");
    let globals = snapshot_globals(&mut *ctx, instance);
    let (memory_mins, data_segments) = snapshot_memories(&mut *ctx, instance);
    let instantiations = snapshot_instantiations(&mut *ctx, instance);
    Snapshot {
        globals,
        memory_mins,
        data_segments,
        instantiations,
    }
}
pub fn snapshot ( ctx : & mut impl AsContextMut , instance : & wasmtime :: Instance ) -> Snapshot { log :: debug ! ( " " ) ; let globals = snapshot_globals ( & mut * ctx , instance ) ; let ( memory_mins , data_segments ) = snapshot_memories ( & mut * ctx , instance ) ; let instantiations = snapshot_instantiations ( & mut * ctx , instance ) ; Snapshot { globals , memory_mins , data_segments , instantiations , } }
Snapshot the given instance's globals, memories, and instances from the Wasm
defaults.
Snapshot the given instance ' s globals memories and instances from the Wasm defaults .
ctx
&mut impl AsContextMut
instance
&wasmtime::Instance
ctx
&mut impl AsContextMut
instance
&wasmtime::Instance