MCPcopy Create free account
hub / github.com/argumentcomputer/ix / restore_depth

Method restore_depth

crates/kernel/src/tc.rs:519–523  ·  view source on GitHub ↗

Restore context to a previously saved depth.

(&mut self, saved: usize)

Source from the content-addressed store, hash-verified

517 return false;
518 }
519 let level = n - 1 - idx_us;
520 self.let_vals[level].is_some()
521 }
522
523 /// Save current depth for later restore.
524 pub fn save_depth(&self) -> usize {
525 self.ctx.len()
526 }

Callers 2

Calls 2

pop_localMethod · 0.80
lenMethod · 0.45

Tested by 2