pub struct World {
pub id: Option<String>,
pub uses: IndexMap<String, UsedType>,
pub imports: IndexMap<String, ItemKind>,
pub exports: IndexMap<String, ItemKind>,
}Expand description
Represents a world.
Fields§
§id: Option<String>The identifier of the world.
This may be None for worlds representing component types.
uses: IndexMap<String, UsedType>A map of imported name to information about the used type.
imports: IndexMap<String, ItemKind>The imported items of the world.
exports: IndexMap<String, ItemKind>The exported items of the world.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for World
impl RefUnwindSafe for World
impl Send for World
impl Sync for World
impl Unpin for World
impl UnwindSafe for World
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)