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