(ty: Type)
| 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 |