Assert that this entity is a memory
(&self)
| 1845 | |
| 1846 | /// Assert that this entity is a memory |
| 1847 | pub fn unwrap_memory(&self) -> &Memory { |
| 1848 | match self { |
| 1849 | EntityType::Memory(g) => g, |
| 1850 | _ => panic!("not a memory"), |
| 1851 | } |
| 1852 | } |
| 1853 | |
| 1854 | /// Assert that this entity is a tag |
| 1855 | pub fn unwrap_tag(&self) -> &Tag { |
no outgoing calls
no test coverage detected