pub struct ItemRef<'a, K> {
pub kind: K,
pub idx: Index<'a>,
pub export_names: Vec<&'a str>,
}
Available on crate feature
component-model
only.Expand description
Parses component item references.
Fields§
§kind: K
The item kind being parsed.
idx: Index<'a>
The item or instance reference.
export_names: Vec<&'a str>
Export names to resolve the item from.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K> Freeze for ItemRef<'a, K>where
K: Freeze,
impl<'a, K> RefUnwindSafe for ItemRef<'a, K>where
K: RefUnwindSafe,
impl<'a, K> Send for ItemRef<'a, K>where
K: Send,
impl<'a, K> Sync for ItemRef<'a, K>where
K: Sync,
impl<'a, K> Unpin for ItemRef<'a, K>where
K: Unpin,
impl<'a, K> UnwindSafe for ItemRef<'a, K>where
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)