Struct wit_parser::PackageMetadata
source · 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