Struct wit_parser::PackageDocs
source · pub struct PackageDocs { /* private fields */ }
Expand description
Represents serializable doc comments parsed from a WIT package.
Implementations§
source§impl PackageDocs
impl PackageDocs
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 PackageDocs
impl<'de> Deserialize<'de> for PackageDocs
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 RefUnwindSafe for PackageDocs
impl Send for PackageDocs
impl Sync for PackageDocs
impl Unpin for PackageDocs
impl UnwindSafe for PackageDocs
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