pub struct PackageMetadata { /* private fields */ }
Expand description
Represents serializable doc comments parsed from a WIT package.
Implementations§
Source§impl PackageMetadata
impl PackageMetadata
pub const SECTION_NAME: &'static str = "package-docs"
Sourcepub fn extract(resolve: &Resolve, package: PackageId) -> Self
pub fn extract(resolve: &Resolve, package: PackageId) -> Self
Extract package docs for the given package.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PackageMetadata
impl<'de> Deserialize<'de> for PackageMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PackageMetadata
impl RefUnwindSafe for PackageMetadata
impl Send for PackageMetadata
impl Sync for PackageMetadata
impl Unpin for PackageMetadata
impl UnwindSafe for PackageMetadata
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