Struct wit_parser::Package
source · pub struct Package {
pub name: PackageName,
pub docs: Docs,
pub interfaces: IndexMap<String, InterfaceId>,
pub worlds: IndexMap<String, WorldId>,
}
Expand description
A WIT package within a Resolve
.
A package is a collection of interfaces and worlds. Packages additionally have a unique identifier that affects generated components and uniquely identifiers this particular package.
Fields§
§name: PackageName
A unique name corresponding to this package.
docs: Docs
Documentation associated with this package.
interfaces: IndexMap<String, InterfaceId>
All interfaces contained in this packaged, keyed by the interface’s name.
worlds: IndexMap<String, WorldId>
All worlds contained in this package, keyed by the world’s name.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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