Looks up a tag [`Tag`] by name. Returns `None` if there was no export named `name`, or if there was but it wasn't a tag. # Panics Panics if `store` does not own this instance.
(&self, store: impl AsContextMut, name: &str)
| 591 | /// |
| 592 | /// Panics if `store` does not own this instance. |
| 593 | pub fn get_tag(&self, store: impl AsContextMut, name: &str) -> Option<Tag> { |
| 594 | self.get_export(store, name)?.into_tag() |
| 595 | } |
| 596 | |
| 597 | #[allow( |
| 598 | dead_code, |
no test coverage detected