Struct wit_parser::World
source · pub struct World {
pub name: String,
pub imports: IndexMap<WorldKey, WorldItem>,
pub exports: IndexMap<WorldKey, WorldItem>,
pub package: Option<PackageId>,
pub docs: Docs,
pub stability: Stability,
pub includes: Vec<(Stability, WorldId)>,
pub include_names: Vec<Vec<IncludeName>>,
}
Fields§
§name: String
The WIT identifier name of this world.
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.
docs: Docs
Documentation associated with this world declaration.
stability: Stability
Stability annotation for this world itself.
includes: Vec<(Stability, 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)