Enum wast::ItemRef [−][src]
pub enum ItemRef<'a, K> {
Outer {
kind: K,
module: Index<'a>,
idx: Index<'a>,
},
Item {
kind: K,
idx: Index<'a>,
exports: Vec<&'a str>,
},
}Parses (func $foo)
Optionally includes export strings for module-linking sugar syntax for alias injection.
Variants
Implementations
impl<'a, K> ItemRef<'a, K>[src]
impl<'a, K> ItemRef<'a, K>[src]pub fn unwrap_index(&self) -> &Index<'a>[src]
Unwraps the underlying Index for ItemRef::Item.
Panics if this is ItemRef::Outer or if exports haven’t been expanded
yet.
Trait Implementations
Auto Trait Implementations
impl<'a, K> RefUnwindSafe for ItemRef<'a, K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
impl<'a, K> Send for ItemRef<'a, K> where
K: Send,
K: Send,
impl<'a, K> Sync for ItemRef<'a, K> where
K: Sync,
K: Sync,
impl<'a, K> Unpin for ItemRef<'a, K> where
K: Unpin,
K: Unpin,
impl<'a, K> UnwindSafe for ItemRef<'a, K> where
K: UnwindSafe,
K: UnwindSafe,