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 Freeze for Package
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
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
)