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

Method succ

crates/kernel/src/level.rs:136–141  ·  view source on GitHub ↗
(inner: KUniv<M>)

Source from the content-addressed store, hash-verified

134 }
135
136 /// Peel the outermost constant offset: returns `(base, n)` where
137 /// `self = Succ^n(base)` and `base` is not `Succ`.
138 pub fn offset(&self) -> (&KUniv<M>, u64) {
139 let mut u = self;
140 let mut n = 0u64;
141 loop {
142 match u.data() {
143 UnivData::Succ(inner, _) => {
144 u = inner;

Callers

nothing calls this directly

Calls 3

as_bytesMethod · 0.80
finalizeMethod · 0.80
addrMethod · 0.45

Tested by

no test coverage detected