(self)
| 76 | /// Returns `None` if this is not a memory. |
| 77 | #[inline] |
| 78 | pub fn into_memory(self) -> Option<Memory> { |
| 79 | match self { |
| 80 | Extern::Memory(memory) => Some(memory), |
| 81 | _ => None, |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | /// Returns the underlying `SharedMemory`, if this external is a shared |
| 86 | /// memory. |
no outgoing calls