MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / contains_constant

Method contains_constant

cranelift/reader/src/sourcemap.rs:67–69  ·  view source on GitHub ↗

Look up a constant entity.

(&self, c: Constant)

Source from the content-addressed store, hash-verified

65
66 /// Look up a constant entity.
67 pub fn contains_constant(&self, c: Constant) -> bool {
68 self.locations.contains_key(&c.into())
69 }
70
71 /// Look up an entity by source name.
72 /// Returns the entity reference corresponding to `name`, if it exists.

Callers 1

check_constantMethod · 0.80

Calls 1

contains_keyMethod · 0.45

Tested by

no test coverage detected