Enum wit_parser::WorldItem
source · pub enum WorldItem {
Interface(InterfaceId),
Function(Function),
Type(TypeId),
}
Variants§
Interface(InterfaceId)
An interface is being imported or exported from a world, indicating that it’s a namespace of functions.
Function(Function)
A function is being directly imported or exported from this world.
Type(TypeId)
A type is being exported from this world.
Note that types are never imported into worlds at this time.
Trait Implementations§
source§impl PartialEq for WorldItem
impl PartialEq for WorldItem
impl StructuralPartialEq for WorldItem
Auto Trait Implementations§
impl RefUnwindSafe for WorldItem
impl Send for WorldItem
impl Sync for WorldItem
impl Unpin for WorldItem
impl UnwindSafe for WorldItem
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