MCPcopy Create free account
hub / github.com/EnsoBuild/temper / from

Method from

src/simulation.rs:100–113  ·  view source on GitHub ↗
(value: State)

Source from the content-addressed store, hash-verified

98
99impl From<State> for StorageOverride {
100 fn from(value: State) -> Self {
101 let (slots, diff) = match value {
102 State::Full { state } => (state, false),
103 State::Diff { state_diff } => (state_diff, true),
104 };
105
106 StorageOverride {
107 slots: slots
108 .into_iter()
109 .map(|(key, value)| (key, value.into()))
110 .collect(),
111 diff,
112 }
113 }
114}
115
116#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected