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

Function n

crates/kernel/src/congruence.rs:381–383  ·  view source on GitHub ↗

`Nat` from a u64 via the public `From ` impl. (The `Nat` type itself is a private re-export in `env.rs`.)

(x: u64)

Source from the content-addressed store, hash-verified

379 /// `Nat` from a u64 via the public `From<u64>` impl.
380 /// (The `Nat` type itself is a private re-export in `env.rs`.)
381 fn n(x: u64) -> bignat::Nat {
382 bignat::Nat::from(x)
383 }
384
385 // ---- test helpers ----
386

Callers 13

expr_bvar_matchesFunction · 0.70
expr_lam_matchesFunction · 0.70
expr_forall_matchesFunction · 0.70
expr_let_matchesFunction · 0.70
expr_nat_lit_matchesFunction · 0.70
expr_proj_matchesFunction · 0.70

Calls

no outgoing calls

Tested by 13

expr_bvar_matchesFunction · 0.56
expr_lam_matchesFunction · 0.56
expr_forall_matchesFunction · 0.56
expr_let_matchesFunction · 0.56
expr_nat_lit_matchesFunction · 0.56
expr_proj_matchesFunction · 0.56