1 2 3 4 5 6 7 8 9 10 11 12
use crate::memory::init_stable_state; use crate::types::state::{HeapState, RuntimeState, State}; impl Default for State { fn default() -> Self { Self { stable: init_stable_state(), heap: HeapState::default(), runtime: RuntimeState::default(), } } }