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>,
},
}
Expand description
Parses (func $foo)
Optionally includes export strings for module-linking sugar syntax for alias injection.
Variants
Implementations
Unwraps the underlying Index
for ItemRef::Item
.
Panics if this is ItemRef::Outer
or if exports haven’t been expanded
yet.
Trait Implementations
Returns a human-readable name of this token to display when generating errors about this token missing. Read more
Auto Trait Implementations
impl<'a, K> RefUnwindSafe for ItemRef<'a, K> where
K: RefUnwindSafe,
impl<'a, K> UnwindSafe for ItemRef<'a, K> where
K: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more