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

Method nat_offset_or_zero

crates/kernel/src/whnf.rs:1180–1190  ·  view source on GitHub ↗
(
    &mut self,
    e: &KExpr<M>,
    depth: u16,
  )

Source from the content-addressed store, hash-verified

1178 continue;
1179 }
1180
1181 // Native/string primitives must run before projection-definition
1182 // rewriting. In the compiled environment, wrappers such as
1183 // `Subtype.val` and `String.toByteArray` are projection definitions;
1184 // once rewritten to `Prj`, the cheap primitive recognizers no longer
1185 // see the original head.
1186 if family == PrimFamily::Native
1187 && let Some(reduced) = self.try_reduce_native(&cur)?
1188 {
1189 cur = reduced;
1190 continue;
1191 }
1192
1193 // String literal primitives.

Callers 1

nat_offsetMethod · 0.80

Calls 2

nat_offsetMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected