Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ encode
Method
encode
cranelift/interpreter/src/address.rs:87–94 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
85
}
86
87
pub fn encode(self) -> u64 {
88
match self {
89
AddressRegion::Stack => 0,
90
AddressRegion::Function => 1,
91
AddressRegion::Table => 2,
92
AddressRegion::GlobalValue => 3,
93
}
94
}
95
}
96
97
#[derive(Debug, Clone, PartialEq)]
Callers
1
try_from
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected