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

Method try_from

cranelift/interpreter/src/address.rs:57–63  ·  view source on GitHub ↗
(ty: Type)

Source from the content-addressed store, hash-verified

55 type Error = MemoryError;
56
57 fn try_from(ty: Type) -> Result<Self, Self::Error> {
58 match ty {
59 types::I64 => Ok(AddressSize::_64),
60 types::I32 => Ok(AddressSize::_32),
61 _ => Err(MemoryError::InvalidAddressType(ty)),
62 }
63 }
64}
65
66/// Virtual Address region

Callers

nothing calls this directly

Calls 4

OkFunction · 0.85
decodeFunction · 0.85
encodeMethod · 0.45
bitsMethod · 0.45

Tested by

no test coverage detected