MCPcopy Create free account
hub / github.com/dfinity/examples / with_state_mut

Function with_state_mut

rust/low_wasm_memory/backend/lib.rs:31–33  ·  view source on GitHub ↗

A helper method to mutate the state. Precondition: the state is already initialized.

(f: impl FnOnce(&mut State) -> R)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

hookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected