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

Method mvar

crates/common/src/env.rs:442–447  ·  view source on GitHub ↗

Constructs a universe-level metavariable with the given name.

(x: Name)

Source from the content-addressed store, hash-verified

440 }
441 }
442 /// Constructs `imax x y` (impredicative max).
443 pub fn imax(x: Level, y: Level) -> Self {
444 let mut hasher = blake3::Hasher::new();
445 hasher.update(&[UIMAX]);
446 hasher.update(x.get_hash().as_bytes());
447 hasher.update(y.get_hash().as_bytes());
448 Level(Arc::new(LevelData::Imax(x, y, hasher.finalize())))
449 }
450 /// Constructs a universe parameter with the given name.

Callers

nothing calls this directly

Calls 5

as_bytesMethod · 0.80
get_hashMethod · 0.80
finalizeMethod · 0.80
LevelClass · 0.70
ExprClass · 0.70

Tested by

no test coverage detected