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

Method new

cranelift/codegen/src/ir/memflags.rs:83–86  ·  view source on GitHub ↗
(index: usize)

Source from the content-addressed store, hash-verified

81impl entity::EntityRef for MemFlags {
82 #[inline]
83 fn new(index: usize) -> Self {
84 let val = u16::try_from(index).expect("MemFlags index overflow");
85 Self(val)
86 }
87
88 #[inline]
89 fn index(self) -> usize {

Callers

nothing calls this directly

Calls 3

no_alias_regionFunction · 0.85
newFunction · 0.50
expectMethod · 0.45

Tested by

no test coverage detected