pub enum ItemKind {
Type(Type),
Func(FuncTypeId),
Instance(InterfaceId),
Component(WorldId),
Module(ModuleTypeId),
Value(ValueType),
}Expand description
Represents the kind of a component model item.
Note that an item kind is associated with a particular Types collection.
Variants§
Type(Type)
The item is a type.
Func(FuncTypeId)
The item is a function.
Instance(InterfaceId)
The item is a component instance.
Component(WorldId)
The item is a component.
Module(ModuleTypeId)
The item is a core module.
Value(ValueType)
The item is a value.
Implementations§
Trait Implementations§
Source§impl From<ItemKind> for ComponentExportKind
impl From<ItemKind> for ComponentExportKind
impl Copy for ItemKind
impl Eq for ItemKind
impl StructuralPartialEq for ItemKind
Auto Trait Implementations§
impl Freeze for ItemKind
impl RefUnwindSafe for ItemKind
impl Send for ItemKind
impl Sync for ItemKind
impl Unpin for ItemKind
impl UnwindSafe for ItemKind
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.