Enum wit_parser::WorldItem
source · pub enum WorldItem {
Interface {
id: InterfaceId,
stability: Stability,
},
Function(Function),
Type(TypeId),
}
Variants§
Interface
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.
Implementations§
Trait Implementations§
impl StructuralPartialEq for WorldItem
Auto Trait Implementations§
impl Freeze for WorldItem
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)