Struct wit_parser::World
source · pub struct World {
pub name: String,
pub docs: Docs,
pub imports: IndexMap<WorldKey, WorldItem>,
pub exports: IndexMap<WorldKey, WorldItem>,
pub package: Option<PackageId>,
pub includes: Vec<WorldId>,
pub include_names: Vec<Vec<IncludeName>>,
}
Fields§
§name: String
The WIT identifier name of this world.
docs: Docs
Documentation associated with this world declaration.
imports: IndexMap<WorldKey, WorldItem>
All imported items into this interface, both worlds and functions.
exports: IndexMap<WorldKey, WorldItem>
All exported items from this interface, both worlds and functions.
package: Option<PackageId>
The package that owns this world.
includes: Vec<WorldId>
All the included worlds from this world. Empty if this is fully resolved
include_names: Vec<Vec<IncludeName>>
All the included worlds names. Empty if this is fully resolved
Trait Implementations§
Auto Trait Implementations§
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